Table of Contents

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 BaseDiscordClient

BaseDiscordClient to attach to the object.

unicodeEntity string

Unicode entity to create the object from.

emoji DiscordEmoji

Resulting 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 string

Unicode entity to create the object from.

emoji DiscordEmoji

Resulting DiscordEmoji object.

Returns

bool

Whether the operation was successful.