deleteEmojiWithHttpInfo method

Future<Response> deleteEmojiWithHttpInfo(
  1. String emojiId
)

Delete a custom emoji

Delete a custom emoji. ##### Permissions Must have the manage_team or manage_system permissions or be the user who created the emoji.

Note: This method returns the HTTP Response.

Parameters:

  • String emojiId (required): Emoji GUID

Implementation

Future<Response> deleteEmojiWithHttpInfo(
  String emojiId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/emoji/{emoji_id}'.replaceAll('{emoji_id}', emojiId);

  // 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,
  );
}