Table of Contents

Method GetApplicationEmojiAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetApplicationEmojiAsync(ulong, bool)

Gets an application emoji.

public Task<DiscordApplicationEmoji?> GetApplicationEmojiAsync(ulong id, bool fetch = false)

Parameters

id ulong

The emoji id.

fetch bool

Whether to ignore the cache. Defaults to false.

Returns

Task<DiscordApplicationEmoji>

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.