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
Type | Name | Description |
---|---|---|
System.Object | other | The 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
Type | Name | Description |
---|---|---|
System.String | text | The raw encoding of an emoji. For example: <pre>:heart: or ❤ </pre> |
Discord.Emoji | result | An emoji. |
Parse(String)
Parse an Discord.Emoji from its raw format.
View Source
Declaration
public static Emoji Parse(string emojiStr)
Returns
Parameters
Type | Name | Description |
---|---|---|
System.String | emojiStr | The raw encoding of an emoji. For example: :heart: or ❤ |
GetHashCode()
View Source
Declaration
public override int GetHashCode()
Returns
System.Int32