Table of Contents

Method TryFromGuildEmote

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

TryFromGuildEmote(BaseDiscordClient, ulong, out DiscordEmoji)

Attempts to create an emoji object from a guild emote.

public static bool TryFromGuildEmote(BaseDiscordClient client, ulong id, out DiscordEmoji emoji)

Parameters

client BaseDiscordClient

BaseDiscordClient to attach to the object.

id ulong

Id of the emote.

emoji DiscordEmoji

Resulting DiscordEmoji object.

Returns

bool

Whether the operation was successful.