Method GetEmojiAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetEmojiAsync(ulong, CancellationToken)
Gets this guild's specified custom emoji.
public Task<DiscordGuildEmoji> GetEmojiAsync(ulong id, CancellationToken cancellationToken = default)
Parameters
idulongID of the emoji to get.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordGuildEmoji>
The requested custom emoji.
Exceptions
- ServerErrorException
Thrown when Discord is unable to process the request.