diff --git a/src/commands-contextmenu/updateuser.ts b/src/commands-contextmenu/updateuser.ts index 6f9f9fc..57dc3c3 100644 --- a/src/commands-contextmenu/updateuser.ts +++ b/src/commands-contextmenu/updateuser.ts @@ -4,6 +4,7 @@ import { ContextMenu } from "interfaces" import verifySchema from "schemas/verifySchema" import { getGuild, getHeadURL, getIGN } from "utils/Hypixel" import roleManage from "utils/functions/rolesmanage" +import { waitingListRole } from "config/roles" export = { name: "Update User", @@ -134,6 +135,8 @@ export = { replyRank = "Member" } + await user.roles.remove(waitingListRole) + await interaction.editReply({ embeds: [{ description: usermentioned + " was given the " + replyRank + " role.", diff --git a/src/commands/forceupdate.ts b/src/commands/forceupdate.ts index 461c57e..45ad37c 100644 --- a/src/commands/forceupdate.ts +++ b/src/commands/forceupdate.ts @@ -4,6 +4,7 @@ import { hypixelGuildID, embedColor, devMessage } from "config/options" import verify from "schemas/verifySchema" import { Command } from "interfaces" import roleManage from "utils/functions/rolesmanage" +import { waitingListRole } from "config/roles" export = { name: "forceupdate", @@ -140,6 +141,8 @@ export = { replyRank = "Member" } + await user.roles.remove(waitingListRole) + await interaction.editReply({ embeds: [{ description: usermentioned + " was given the the " + replyRank + " role.", diff --git a/src/commands/update.ts b/src/commands/update.ts index ad39ab6..d9141a3 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -4,6 +4,7 @@ import verify from "schemas/verifySchema" import { embedColor, hypixelGuildID, devMessage } from "config/options" import roleManage from "utils/functions/rolesmanage" import { Command } from "interfaces" +import { waitingListRole } from "config/roles" export = { name: "update", @@ -123,6 +124,8 @@ export = { replyRank = "Member" } + await user.roles.remove(waitingListRole) + await interaction.editReply({ embeds: [{ description: "Updated your roles to `" + replyRank + "`",