feat: implement guild_keys and user_keys

This commit is contained in:
2026-01-13 18:37:06 -03:00
parent 7d0b5dc459
commit cfae674cb4
+5 -1
View File
@@ -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 {