disableBotWithHttpInfo method

Future<Response> disableBotWithHttpInfo(
  1. String botUserId
)

Disable a bot

Disable a bot. ##### Permissions Must have manage_bots permission. Minimum server version: 5.10

Note: This method returns the HTTP Response.

Parameters:

  • String botUserId (required): Bot user ID

Implementation

Future<Response> disableBotWithHttpInfo(
  String botUserId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/bots/{bot_user_id}/disable'.replaceAll('{bot_user_id}', botUserId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}