Table of Contents

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

id ulong

ID of the emoji to get.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordGuildEmoji>

The requested custom emoji.

Exceptions

ServerErrorException

Thrown when Discord is unable to process the request.