LogoRobo.js
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

ParameterType
namestring
interactionChatInputCommandInteraction<CacheType>

Returns

Promise<void>


get()

get(name): Promise<null | CommandHandler>

Get a specific command handler by name

Parameters

ParameterType
namestring

Returns

Promise<null | CommandHandler>


list()

list(): string[]

Get all command keys

Returns

string[]

On this page