From 34999aff50c56244bc00fbdb01c2d3de2fd56119 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 24 Sep 2025 02:41:29 -0700 Subject: feat: Restrict complain and appeal commands to DMs --- src/discord/commands.ts | 2 ++ src/discord/interfaces.ts | 1 + 2 files changed, 3 insertions(+) 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 { -- cgit v1.2.3