removeDMReactionWithHttpInfo method

Future<Response> removeDMReactionWithHttpInfo(
  1. String messageId,
  2. String emoji, {
  3. String? accountId,
})

Remove a DM message reaction.

Note: This method returns the HTTP Response.

Parameters:

  • String messageId (required): Chat-message id.

  • String emoji (required): Reaction emoji (e.g. +1, eyes, pepper).

  • String accountId:

Implementation

Future<Response> removeDMReactionWithHttpInfo(String messageId, String emoji, { String? accountId, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/direct-messages/messages/{messageId}/reactions/{emoji}'
    .replaceAll('{messageId}', messageId)
    .replaceAll('{emoji}', emoji);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (accountId != null) {
    queryParams.addAll(_queryParams('', 'accountId', accountId));
  }

  const contentTypes = <String>[];


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