feat(commands): add beta feature flag support to command system

- Add beta and featureFlag properties to Command interface
- Add beta access check in CommandHandler before command execution
- Show beta feature message to non-whitelisted users
This commit is contained in:
syntaxbullet
2026-02-12 14:45:58 +01:00
parent 67a3aa4b0f
commit 228005322e
2 changed files with 34 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ export interface Command {
execute: (interaction: ChatInputCommandInteraction) => Promise<void> | void;
autocomplete?: (interaction: AutocompleteInteraction) => Promise<void> | void;
category?: string;
beta?: boolean;
featureFlag?: string;
}
export interface Event<K extends keyof ClientEvents> {