Table of Contents

Method DeleteEmojiAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteEmojiAsync(DiscordGuildEmoji, string)

Deletes this guild's custom emoji.

public Task DeleteEmojiAsync(DiscordGuildEmoji emoji, string reason = null)

Parameters

emoji DiscordGuildEmoji

Emoji to delete.

reason string

Reason for audit log.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageGuildExpressions permission.

ServerErrorException

Thrown when Discord is unable to process the request.