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
DiscordGuildEmojiEmoji to delete.
reason
stringReason for audit log.
Returns
Exceptions
- UnauthorizedException
Thrown when the client does not have the ManageGuildExpressions permission.
- ServerErrorException
Thrown when Discord is unable to process the request.