Skip to main content

Class Emote

A custom image-based emote.

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class Emote : IEmote, ISnowflakeEntity, IEntity<ulong>

Properties​

Name​

Gets the display name or Unicode representation of this emote.

View Source​
Declaration
public string Name { get; }

Id​

Gets the unique identifier for this object.

View Source​
Declaration
public ulong Id { get; }

Animated​

Gets whether this emote is animated.

View Source​
Declaration
public bool Animated { get; }

CreatedAt​

Gets when the snowflake was created.

View Source​
Declaration
public DateTimeOffset CreatedAt { get; }

Url​

Gets the image URL of this emote.

View Source​
Declaration
public string Url { get; }

Methods​

Equals(Object)​

Determines whether the specified emote is equal to the current emote.

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

System.Boolean

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

GetHashCode()​

View Source​
Declaration
public override int GetHashCode()
Returns​

System.Int32

Parse(String)​

Parses an Discord.Emote from its raw format.

View Source​
Declaration
public static Emote Parse(string text)
Returns​

Discord.Emote: An emote.

Parameters​
TypeNameDescription
System.StringtextThe raw encoding of an emote (e.g. &lt;:dab:277855270321782784&gt;).

TryParse(String, out Emote)​

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

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

System.Boolean

Parameters​
TypeNameDescription
System.StringtextThe raw encoding of an emote; for example, <:dab:277855270321782784>.
Discord.EmoteresultAn emote.

ToString()​

Returns the raw representation of the emote.

View Source​
Declaration
public override string ToString()
Returns​

System.String: A string representing the raw presentation of the emote (e.g. &lt;:thonkang:282745590985523200&gt;).

Implements​