fix: make requiresAdmin optional
This commit is contained in:
+1
-1
@@ -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>;
|
||||||
|
|||||||
Reference in New Issue
Block a user