-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdfunk.command.ts
More file actions
36 lines (30 loc) · 1.04 KB
/
dfunk.command.ts
File metadata and controls
36 lines (30 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js";
import { CommandNames } from "../commands.names";
import { DfunkSubcommands } from "./dfunk-subcommands";
const command = new SlashCommandBuilder()
.setName(CommandNames.DFUNK)
.setDescription("Command related to the dfunk automatic update.")
.setDefaultMemberPermissions(PermissionFlagsBits.ManageGuild);
command.addSubcommand((subCommand) =>
subCommand
.setName(DfunkSubcommands.UPDATE)
.setDescription("Manually start the dfunk role update routine.")
);
command.addSubcommand((subCommand) =>
subCommand
.setName(DfunkSubcommands.TEST)
.setDescription("Start the dfunk role update test routine.")
);
command.addSubcommand((subCommand) =>
subCommand
.setName(DfunkSubcommands.TOGGLE)
.setDescription("Toggles the automatic dfunk role update routine.")
);
command.addSubcommand((subCommand) =>
subCommand
.setName(DfunkSubcommands.STATUS)
.setDescription(
"Reveals the current status of the automatic dfunk role update."
)
);
export const dfunkCommand = command;