Added purne subcommand to staff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user