Skip to main content

Class Emoji

A Unicode emoji.

Assembly: Discord.Net.Core.dll
View Source
Declaration
public class Emoji : IEmote

Properties

Name

Gets the display name or Unicode representation of this emote.

View Source
Declaration
public string Name { get; }

Methods

ToString()

Gets the Unicode representation of this emoji.

View Source
Declaration
public override string ToString()
Returns

System.String: A string that resolves to Discord.Emoji.Name.

Equals(Object)

Determines whether the specified emoji is equal to the current one.

View Source
Declaration
public override bool Equals(object other)
Returns

System.Boolean

Parameters
TypeNameDescription
System.ObjectotherThe object to compare with the current object.

TryParse(String, out Emoji)

Tries to parse an Discord.Emoji from its raw format.

View Source
Declaration
public static bool TryParse(string text, out Emoji result)
Returns

System.Boolean

Parameters
TypeNameDescription
System.StringtextThe raw encoding of an emoji. For example: <pre>:heart: or ❤</pre>
Discord.EmojiresultAn emoji.

Parse(String)

Parse an Discord.Emoji from its raw format.

View Source
Declaration
public static Emoji Parse(string emojiStr)
Returns

Discord.Emoji

Parameters
TypeNameDescription
System.StringemojiStrThe raw encoding of an emoji. For example: :heart: or ❤

GetHashCode()

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32

Implements