From 20540f7b5326eae1885b6b74064e5f1139b4668a Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 10 Jan 2026 12:07:04 -0300 Subject: [PATCH] fix: make requiresAdmin optional --- src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.ts b/src/commands.ts index 7cfc9d9..717676c 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -22,7 +22,7 @@ import { isModule } from './utils/misc'; export interface Command { name?: string; - requiresAdmin: boolean; + requiresAdmin?: boolean; ownerOnly?: boolean; execute?: (interaction: ChatInputCommandInteraction) => Promise; autocomplete?: (interaction: AutocompleteInteraction) => Promise;