Packages@robojs/discordjs
CommandsNamespaceController
Interface: CommandsNamespaceController
Namespace controller for portal.discord.commands Provides access to all commands and execution utilities.
Methods
execute()
execute(name, interaction): Promise<void>Execute a command programmatically
Parameters
| Parameter | Type |
|---|---|
name | string |
interaction | ChatInputCommandInteraction<CacheType> |
Returns
Promise<void>
get()
get(name): Promise<null | CommandHandler>Get a specific command handler by name
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
Promise<null | CommandHandler>
list()
list(): string[]Get all command keys
Returns
string[]
