- Preparing search index...
- The search index is not available
discmd-handler
- handleCommands(options: CommandHandlerOptions): Promise<{
commands: {
ButtonCommands: Collection<string, ButtonCommand>;
ChatInputCommands: Collection<string, ChatInputCommand>;
MessageCommands: Collection<string, MessageCommand>;
SelectMenuCommands: Collection<string, SelectMenuCommand>;
};
errors: Record<"ButtonCommands" | "ChatInputCommands" | "MessageCommands" | "SelectMenuCommands", unknown[]>;
}>
-
Returns Promise<{
commands: {
ButtonCommands: Collection<string, ButtonCommand>;
ChatInputCommands: Collection<string, ChatInputCommand>;
MessageCommands: Collection<string, MessageCommand>;
SelectMenuCommands: Collection<string, SelectMenuCommand>;
};
errors: Record<"ButtonCommands" | "ChatInputCommands" | "MessageCommands" | "SelectMenuCommands", unknown[]>;
}>
Handles Discord commands for a Discord.js client.
Returns
An object containing the loaded commands and any errors.
Example