moved to d.js 14.3.0, started fixing errors
Co-authored-by: PineappleFan <pineapplefanyt@gmail.com>
diff --git a/src/commands/role/user.ts b/src/commands/role/user.ts
index 1b91b71..bdadd9d 100644
--- a/src/commands/role/user.ts
+++ b/src/commands/role/user.ts
@@ -37,7 +37,7 @@
.setDescription(
keyValueList({
user: renderUser(interaction.options.getUser("user")),
- role: renderRole(interaction.options.getRole("role"))
+ role: renderRole(interaction.options.get("role"))
}) +
`\nAre you sure you want to ${
action === "give" ? "give the role to" : "remove the role from"
@@ -49,7 +49,7 @@
if (confirmation.success) {
try {
const member = interaction.options.getMember("user") as GuildMember;
- const role = interaction.options.getRole("role") as Role;
+ const role = interaction.options.get("role") as unknown as Role;
if (interaction.options.getString("action") === "give") {
member.roles.add(role);
} else {