-
- All Known Implementing Classes:
MattermostClient
public interface CommandsApiCommand API.- Author:
- Takayuki Maruyama
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
createCommand
ApiResponse<Command> createCommand(Command cmd)
will create a new command if the user have the right permissions.
-
updateCommand
ApiResponse<Command> updateCommand(Command cmd)
updates a command based on the provided Command object.
-
deleteCommand
ApiResponse<Boolean> deleteCommand(String commandId)
deletes a command based on the provided command id string.
-
listCommands
default ApiResponse<CommandList> listCommands(String teamId)
will retrieve a list of commands available in the team.
-
listCommands
ApiResponse<CommandList> listCommands(String teamId, boolean customOnly)
will retrieve a list of commands available in the team.
-
executeCommand
ApiResponse<CommandResponse> executeCommand(String channelId, String command)
executes a given command.
-
listAutocompleteCommands
ApiResponse<CommandList> listAutocompleteCommands(String teamId)
will retrieve a list of commands available in the team.
-
regenCommandToken
ApiResponse<String> regenCommandToken(String commandId)
will create a new token if the user have the right permissions.
-
-