Method TryFromUnicode
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
TryFromUnicode(BaseDiscordClient, string, out DiscordEmoji)
Attempts to create an emoji object from a unicode entity.
public static bool TryFromUnicode(BaseDiscordClient client, string unicodeEntity, out DiscordEmoji emoji)
Parameters
client
BaseDiscordClientBaseDiscordClient to attach to the object.
unicodeEntity
stringUnicode entity to create the object from.
emoji
DiscordEmojiResulting DiscordEmoji object.
Returns
- bool
Whether the operation was successful.
TryFromUnicode(string, out DiscordEmoji)
Attempts to create an emoji object from a unicode entity.
public static bool TryFromUnicode(string unicodeEntity, out DiscordEmoji emoji)
Parameters
unicodeEntity
stringUnicode entity to create the object from.
emoji
DiscordEmojiResulting DiscordEmoji object.
Returns
- bool
Whether the operation was successful.