The the application this command is for. This can be a partial object with only an id
property.
The default permissions for this command.
The description of this command. Empty string for non CHAT_INPUT
commands.
Optional
descriptionA dictionary of locales to localized descriptions.
Optional
dmIf this command can be used in direct messages (global commands only).
Optional
guildThe guild this command is in (guild commands only).
Optional
guildIDThe id of the guild this command is in (guild commands only).
The name of this command.
Optional
nameA dictionary of locales to localized names.
Optional
optionsThe options on this command. Only valid for CHAT_INPUT
.
The type of this command.
Autoincrementing version identifier updated during substantial record changes.
Edit this command.
The options for editing the command.
Edit this command's permissions (guild commands only). This requires a bearer token with the applications.commands.permissions.update
scope.
The options for editing the permissions.
Get this command's permissions (guild commands only).
Get a mention for this command.
Optional
sub: [subcommand: string] | [subcommandGroup: string, subcommand: string]The subcommand group and/or subcommand to include (["subcommand"] or ["subcommand-group", "subcommand"]).
Static
getStatic
get
A base class which most other classes extend.