Added purne subcommand to staff

This commit is contained in:
2024-01-28 17:47:59 +01:00
parent 286cc5f9e3
commit 4acc892aa0
2 changed files with 97 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import { Command } from "interfaces"
import help from "./staff/help"
import beast from "./staff/beast"
import updateDiscordRoles from "./staff/updatediscordroles"
import prune from "./staff/prune"
export = {
name: "staff",
@@ -31,6 +32,11 @@ export = {
.setRequired(true)
)
)
.addSubcommand(subcommand =>
subcommand
.setName("prune")
.setDescription("Update the discord roles of all guild members")
)
.addSubcommand(subcommand =>
subcommand
.setName("updatediscordroles")
@@ -53,6 +59,11 @@ export = {
return
}
if (subcommand === "prune") {
prune(interaction)
return
}
if (subcommand === "updatediscordroles") {
updateDiscordRoles(interaction)
return