diff options
| author | Fuwn <[email protected]> | 2025-09-24 02:41:29 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-09-24 02:41:29 -0700 |
| commit | 34999aff50c56244bc00fbdb01c2d3de2fd56119 (patch) | |
| tree | 8f3ece6488d05f26e9e24013d2cb801af5fd7cfd /src/discord | |
| parent | feat: Appeal slash command (diff) | |
| download | umabotdiscord-34999aff50c56244bc00fbdb01c2d3de2fd56119.tar.xz umabotdiscord-34999aff50c56244bc00fbdb01c2d3de2fd56119.zip | |
feat: Restrict complain and appeal commands to DMs
Diffstat (limited to 'src/discord')
| -rw-r--r-- | src/discord/commands.ts | 2 | ||||
| -rw-r--r-- | src/discord/interfaces.ts | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/discord/commands.ts b/src/discord/commands.ts index 5f25097..601591b 100644 --- a/src/discord/commands.ts +++ b/src/discord/commands.ts @@ -61,6 +61,7 @@ export const TOP_COMMAND: DiscordCommand = { export const COMPLAIN_COMMAND: DiscordCommand = { name: "complain", description: "Submit a complaint to the moderators", + contexts: [0], options: [ { type: 3, @@ -74,6 +75,7 @@ export const COMPLAIN_COMMAND: DiscordCommand = { export const APPEAL_COMMAND: DiscordCommand = { name: "appeal", description: "Submit an appeal to the moderators", + contexts: [0], options: [ { type: 3, diff --git a/src/discord/interfaces.ts b/src/discord/interfaces.ts index 63b8e82..bc8683c 100644 --- a/src/discord/interfaces.ts +++ b/src/discord/interfaces.ts @@ -69,6 +69,7 @@ export interface DiscordCommand { name: string; description: string; options?: DiscordCommandOption[]; + contexts?: number[]; } export interface DiscordCommandOption { |