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
| Name | Type | Required | Details |
|---|---|---|---|
| Name | Text | Yes | Lowercase command name (1-32 chars). Length: 1 to 32 characters. Must match ^[-_a-z0-9]+$. |
| Description | Text | Yes | Command description (1-100 chars). Length: 1 to 100 characters. |
| Options | List of Command option | No | Parameters for the command. Maximum items: 25. |
| Default permissions | List of Permission | No | Permissions required by default to use the command. |
| DM permission | Yes/No | No | Whether the command can be used in DMs. Default: Yes. |
| NSFW | Yes/No | No | Whether the command is age-restricted. Default: No. |
Outputs
| Name | Type | Details |
|---|---|---|
| Command | Application command | The registered application command. |
Create user context menu (server)
Registers a user-targeted context menu command in a server.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Name | Text | Yes | Display name of the context menu entry. Length: 1 to 32 characters. |
| Default permissions | List of Permission | No | Permissions required by default to use the command. |
Outputs
| Name | Type | Details |
|---|---|---|
| Command | Application command | The registered context menu command. |
Create message context menu (server)
Registers a message-targeted context menu command in a server.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Name | Text | Yes | Display name of the context menu entry. Length: 1 to 32 characters. |
| Default permissions | List of Permission | No | Permissions required by default to use the command. |
Outputs
| Name | Type | Details |
|---|---|---|
| Command | Application command | The registered context menu command. |
Create global slash command
Registers a new slash command globally across all servers.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Name | Text | Yes | Lowercase command name (1-32 chars). Length: 1 to 32 characters. Must match ^[-_a-z0-9]+$. |
| Description | Text | Yes | Command description (1-100 chars). Length: 1 to 100 characters. |
| Options | List of Command option | No | Parameters for the command. Maximum items: 25. |
| Default permissions | List of Permission | No | Permissions required by default to use the command. |
| DM permission | Yes/No | No | Whether the command can be used in DMs. Default: Yes. |
| NSFW | Yes/No | No | Whether the command is age-restricted. Default: No. |
Outputs
| Name | Type | Details |
|---|---|---|
| Command | Application command | The registered application command. |
Update application command
Updates the metadata of an existing application command.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Command | Application command | Yes | The command to update. |
| Name | Text | No | New name for the command. Length: 1 to 32 characters. |
| Description | Text | No | New description for the command. Maximum length: 100 characters. |
| Options | List of Command option | No | New options for the command. Maximum items: 25. |
| Default permissions | List of Permission | No | New default member permissions. |
| NSFW | Yes/No | No | Whether the command should be age-restricted. |
Outputs
| Name | Type | Details |
|---|---|---|
| Command | Application command | The updated application command. |
Delete application command
Deletes an existing application command.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Command | Application command | Yes | The command to delete. |
Bulk set server commands
Replaces every application command in a server with the given list.
Required permissions: Manage server.
Inputs
| Name | Type | Required | Details |
|---|---|---|---|
| Commands | List of Application command | Yes | Full list of commands to register in the server. |
Outputs
| Name | Type | Details |
|---|---|---|
| Commands | List of Application command | The resulting registered commands. |
Fetch server commands
Fetches every application command registered in a server.
Outputs
| Name | Type | Details |
|---|---|---|
| Commands | List of Application command | The list of server commands. |
Fetch global commands
Fetches every application command registered globally.
Outputs
| Name | Type | Details |
|---|---|---|
| Commands | List of Application command | The list of global commands. |