Skip to content
Functioncorev0.14.0Decorator

RegisterCommand

Registers a command in the guilds listed under commands.guilds. Without ids listed there, the command deploys globally.

RegisterCommand(): (ctor: CommandCtor) => void
\@RegisterCommand()
class PingCommand extends BuilderComponent<'command'> {} // or BuilderComponent<'context_menu'>