Module commands_api

Source

Enums§

CreateCommandError
struct for typed errors of method create_command
DeleteCommandError
struct for typed errors of method delete_command
ExecuteCommandError
struct for typed errors of method execute_command
GetCommandByIdError
struct for typed errors of method get_command_by_id
ListAutocompleteCommandsError
struct for typed errors of method list_autocomplete_commands
ListCommandAutocompleteSuggestionsError
struct for typed errors of method list_command_autocomplete_suggestions
ListCommandsError
struct for typed errors of method list_commands
MoveCommandError
struct for typed errors of method move_command
RegenCommandTokenError
struct for typed errors of method regen_command_token
UpdateCommandError
struct for typed errors of method update_command

Functions§

create_command
Create a command for a team. ##### Permissions manage_slash_commands for the team the command is in.
delete_command
Delete a command based on command id string. ##### Permissions Must have manage_slash_commands permission for the team the command is in.
execute_command
Execute a command on a team. ##### Permissions Must have use_slash_commands permission for the team the command is in.
get_command_by_id
Get a command definition based on command id string. ##### Permissions Must have manage_slash_commands permission for the team the command is in. Minimum server version: 5.22
list_autocomplete_commands
List autocomplete commands in the team. ##### Permissions view_team for the team.
list_command_autocomplete_suggestions
List commands’ autocomplete data for the team. ##### Permissions view_team for the team. Minimum server version: 5.24
list_commands
List commands for a team. ##### Permissions manage_slash_commands if need list custom commands.
move_command
Move a command to a different team based on command id string. ##### Permissions Must have manage_slash_commands permission for the team the command is currently in and the destination team. Minimum server version: 5.22
regen_command_token
Generate a new token for the command based on command id string. ##### Permissions Must have manage_slash_commands permission for the team the command is in.
update_command
Update a single command based on command id string and Command struct. ##### Permissions Must have manage_slash_commands permission for the team the command is in.