Skip to main content

Application commands

Register, update and remove the bot's own slash and context-menu commands, both server-scoped and global.

Create server slash command​

Registers a new slash command in a specific server.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
NameTextYesLowercase command name (1-32 chars). Length: 1 to 32 characters. Must match ^[-_a-z0-9]+$.
DescriptionTextYesCommand description (1-100 chars). Length: 1 to 100 characters.
OptionsList of Command optionNoParameters for the command. Maximum items: 25.
Default permissionsList of PermissionNoPermissions required by default to use the command.
DM permissionYes/NoNoWhether the command can be used in DMs. Default: Yes.
NSFWYes/NoNoWhether the command is age-restricted. Default: No.

Outputs

NameTypeDetails
CommandApplication commandThe registered application command.

Create user context menu (server)​

Registers a user-targeted context menu command in a server.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
NameTextYesDisplay name of the context menu entry. Length: 1 to 32 characters.
Default permissionsList of PermissionNoPermissions required by default to use the command.

Outputs

NameTypeDetails
CommandApplication commandThe registered context menu command.

Create message context menu (server)​

Registers a message-targeted context menu command in a server.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
NameTextYesDisplay name of the context menu entry. Length: 1 to 32 characters.
Default permissionsList of PermissionNoPermissions required by default to use the command.

Outputs

NameTypeDetails
CommandApplication commandThe registered context menu command.

Create global slash command​

Registers a new slash command globally across all servers.

Inputs

NameTypeRequiredDetails
NameTextYesLowercase command name (1-32 chars). Length: 1 to 32 characters. Must match ^[-_a-z0-9]+$.
DescriptionTextYesCommand description (1-100 chars). Length: 1 to 100 characters.
OptionsList of Command optionNoParameters for the command. Maximum items: 25.
Default permissionsList of PermissionNoPermissions required by default to use the command.
DM permissionYes/NoNoWhether the command can be used in DMs. Default: Yes.
NSFWYes/NoNoWhether the command is age-restricted. Default: No.

Outputs

NameTypeDetails
CommandApplication commandThe registered application command.

Update application command​

Updates the metadata of an existing application command.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
CommandApplication commandYesThe command to update.
NameTextNoNew name for the command. Length: 1 to 32 characters.
DescriptionTextNoNew description for the command. Maximum length: 100 characters.
OptionsList of Command optionNoNew options for the command. Maximum items: 25.
Default permissionsList of PermissionNoNew default member permissions.
NSFWYes/NoNoWhether the command should be age-restricted.

Outputs

NameTypeDetails
CommandApplication commandThe updated application command.

Delete application command​

Deletes an existing application command.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
CommandApplication commandYesThe command to delete.

Bulk set server commands​

Replaces every application command in a server with the given list.

Required permissions: Manage server.

Inputs

NameTypeRequiredDetails
CommandsList of Application commandYesFull list of commands to register in the server.

Outputs

NameTypeDetails
CommandsList of Application commandThe resulting registered commands.

Fetch server commands​

Fetches every application command registered in a server.

Outputs

NameTypeDetails
CommandsList of Application commandThe list of server commands.

Fetch global commands​

Fetches every application command registered globally.

Outputs

NameTypeDetails
CommandsList of Application commandThe list of global commands.
Need more help?
Can't find what you're looking for? Our team is happy to help.