deleteCommandWithHttpInfo method
Delete a command
Delete a command based on command id string. ##### Permissions Must have manage_slash_commands
permission for the team the command is in.
Note: This method returns the HTTP Response
.
Parameters:
- String commandId (required): ID of the command to delete
Implementation
Future<Response> deleteCommandWithHttpInfo(
String commandId,
) async {
// ignore: prefer_const_declarations
final path = r'/commands/{command_id}'.replaceAll('{command_id}', commandId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}