Table of Contents

Method DeleteEmojiAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteEmojiAsync(DiscordGuildEmoji, string?, CancellationToken)

Deletes this guild's custom emoji.

public Task DeleteEmojiAsync(DiscordGuildEmoji emoji, string? reason = null, CancellationToken cancellationToken = default)

Parameters

emoji DiscordGuildEmoji

Emoji to delete.

reason string

Reason for audit log.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageGuildExpressions permission.

ServerErrorException

Thrown when Discord is unable to process the request.