Method GetApplicationEmojiAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetApplicationEmojiAsync(ulong, bool, CancellationToken)
Gets an application emoji.
public Task<DiscordApplicationEmoji?> GetApplicationEmojiAsync(ulong id, bool fetch = false, CancellationToken cancellationToken = default)
Parameters
idulongThe emoji id.
fetchboolWhether to ignore the cache. Defaults to false.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
Exceptions
- NotFoundException
Thrown when the emoji does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.