fix: make requiresAdmin optional

This commit is contained in:
2026-01-10 12:07:04 -03:00
parent 207b16e1cd
commit 20540f7b53
+1 -1
View File
@@ -22,7 +22,7 @@ import { isModule } from './utils/misc';
export interface Command { export interface Command {
name?: string; name?: string;
requiresAdmin: boolean; requiresAdmin?: boolean;
ownerOnly?: boolean; ownerOnly?: boolean;
execute?: (interaction: ChatInputCommandInteraction) => Promise<void>; execute?: (interaction: ChatInputCommandInteraction) => Promise<void>;
autocomplete?: (interaction: AutocompleteInteraction) => Promise<void>; autocomplete?: (interaction: AutocompleteInteraction) => Promise<void>;