getCommandByIdWithHttpInfo method
Get a command
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
Note: This method returns the HTTP Response
.
Parameters:
- String commandId (required): ID of the command to get
Implementation
Future<Response> getCommandByIdWithHttpInfo(
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,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}