public interface CommandsApi
| Modifier and Type | Method and Description |
|---|---|
ApiResponse<Command> |
createCommand(Command cmd)
will create a new command if the user have the right permissions.
|
ApiResponse<Boolean> |
deleteCommand(String commandId)
deletes a command based on the provided command id string.
|
ApiResponse<CommandResponse> |
executeCommand(String channelId,
String command)
executes a given command.
|
ApiResponse<CommandList> |
listAutocompleteCommands(String teamId)
will retrieve a list of commands available in the team.
|
default ApiResponse<CommandList> |
listCommands(String teamId)
will retrieve a list of commands available in the team.
|
ApiResponse<CommandList> |
listCommands(String teamId,
boolean customOnly)
will retrieve a list of commands available in the team.
|
ApiResponse<String> |
regenCommandToken(String commandId)
will create a new token if the user have the right permissions.
|
ApiResponse<Command> |
updateCommand(Command cmd)
updates a command based on the provided Command object.
|
ApiResponse<Command> createCommand(Command cmd)
ApiResponse<Command> updateCommand(Command cmd)
ApiResponse<Boolean> deleteCommand(String commandId)
default ApiResponse<CommandList> listCommands(String teamId)
ApiResponse<CommandList> listCommands(String teamId, boolean customOnly)
ApiResponse<CommandResponse> executeCommand(String channelId, String command)
ApiResponse<CommandList> listAutocompleteCommands(String teamId)
ApiResponse<String> regenCommandToken(String commandId)
Copyright © 2019. All rights reserved.