feat: implement guild_keys and user_keys
This commit is contained in:
+5
-1
@@ -22,8 +22,13 @@ import { isModule } from './utils/misc';
|
|||||||
|
|
||||||
export interface Command {
|
export interface Command {
|
||||||
name?: string;
|
name?: string;
|
||||||
|
builder?: SlashCommandOptionsOnlyBuilder;
|
||||||
requiresAdmin?: boolean;
|
requiresAdmin?: boolean;
|
||||||
ownerOnly?: boolean;
|
ownerOnly?: boolean;
|
||||||
|
|
||||||
|
guild_keys?: Record<string, unknown>;
|
||||||
|
user_keys?: Record<string, unknown>;
|
||||||
|
|
||||||
execute?: (interaction: ChatInputCommandInteraction) => Promise<void>;
|
execute?: (interaction: ChatInputCommandInteraction) => Promise<void>;
|
||||||
autocomplete?: (interaction: AutocompleteInteraction) => Promise<void>;
|
autocomplete?: (interaction: AutocompleteInteraction) => Promise<void>;
|
||||||
messageListener?: (msg: Message) => Promise<void>;
|
messageListener?: (msg: Message) => Promise<void>;
|
||||||
@@ -31,7 +36,6 @@ export interface Command {
|
|||||||
prevState: VoiceState,
|
prevState: VoiceState,
|
||||||
newState: VoiceState
|
newState: VoiceState
|
||||||
) => Promise<void>;
|
) => Promise<void>;
|
||||||
builder?: SlashCommandOptionsOnlyBuilder;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CommandCategoryInfo {
|
export interface CommandCategoryInfo {
|
||||||
|
|||||||
Reference in New Issue
Block a user