Updated update commands to remove waitinglist role
This commit is contained in:
@@ -4,6 +4,7 @@ import { ContextMenu } from "interfaces"
|
|||||||
import verifySchema from "schemas/verifySchema"
|
import verifySchema from "schemas/verifySchema"
|
||||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
||||||
import roleManage from "utils/functions/rolesmanage"
|
import roleManage from "utils/functions/rolesmanage"
|
||||||
|
import { waitingListRole } from "config/roles"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "Update User",
|
name: "Update User",
|
||||||
@@ -134,6 +135,8 @@ export = {
|
|||||||
replyRank = "Member"
|
replyRank = "Member"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await user.roles.remove(waitingListRole)
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
description: usermentioned + " was given the " + replyRank + " role.",
|
description: usermentioned + " was given the " + replyRank + " role.",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { hypixelGuildID, embedColor, devMessage } from "config/options"
|
|||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { Command } from "interfaces"
|
import { Command } from "interfaces"
|
||||||
import roleManage from "utils/functions/rolesmanage"
|
import roleManage from "utils/functions/rolesmanage"
|
||||||
|
import { waitingListRole } from "config/roles"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "forceupdate",
|
name: "forceupdate",
|
||||||
@@ -140,6 +141,8 @@ export = {
|
|||||||
replyRank = "Member"
|
replyRank = "Member"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await user.roles.remove(waitingListRole)
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
description: usermentioned + " was given the the " + replyRank + " role.",
|
description: usermentioned + " was given the the " + replyRank + " role.",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import verify from "schemas/verifySchema"
|
|||||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||||
import roleManage from "utils/functions/rolesmanage"
|
import roleManage from "utils/functions/rolesmanage"
|
||||||
import { Command } from "interfaces"
|
import { Command } from "interfaces"
|
||||||
|
import { waitingListRole } from "config/roles"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "update",
|
name: "update",
|
||||||
@@ -123,6 +124,8 @@ export = {
|
|||||||
replyRank = "Member"
|
replyRank = "Member"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await user.roles.remove(waitingListRole)
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
description: "Updated your roles to `" + replyRank + "`",
|
description: "Updated your roles to `" + replyRank + "`",
|
||||||
|
|||||||
Reference in New Issue
Block a user