Method TryFromGuildEmote
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.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
BaseDiscordClientBaseDiscordClient to attach to the object.
id
ulongId of the emote.
emoji
DiscordEmojiResulting DiscordEmoji object.
Returns
- bool
Whether the operation was successful.