Table of Contents

Class DiscordEmoji

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a Discord emoji.

public class DiscordEmoji : SnowflakeObject, IEquatable<DiscordEmoji>
Inheritance
DiscordEmoji
Implements
Derived
Inherited Members
Extension Methods

Properties

IsAnimated

Gets whether this emoji is animated.

IsAvailable

Gets whether the emoji is available for use. An emoji may not be available due to loss of server boost.

IsManaged

Gets whether this emoji is managed by an integration.

Name

Gets the name of this emoji.

RequiresColons

Gets whether this emoji requires colons to use.

Roles

Gets IDs the roles this emoji is enabled for.

UnicodeEmoji

Gets the unicode version of this emoji.

Url

Gets the image URL of this emoji.

Methods

Equals(DiscordEmoji)

Checks whether this DiscordEmoji is equal to another DiscordEmoji.

Equals(object)

Checks whether this DiscordEmoji is equal to another object.

FromApplicationEmote(BaseDiscordClient, ulong)

Gets an emoji object from an application emote.

FromGuildEmote(BaseDiscordClient, ulong)

Gets an emoji object from an guild emote.

FromName(BaseDiscordClient, string, bool, bool)

Gets an emoji object from emote name that includes colons (eg. 🤔). This method also supports skin tone variations (eg. 👌:skin-tone-2:), standard emoticons (eg. :D), guild emoji, as well as application emoji (still specified by :name:).

FromUnicode(BaseDiscordClient, string)

Creates an emoji object from a unicode entity.

FromUnicode(string)

Creates an emoji object from a unicode entity.

GetDiscordName()

Gets emoji's name in non-Unicode format (eg. 🤔 instead of the Unicode representation of the emoji).

GetHashCode()

Gets the hash code for this DiscordEmoji.

IsValidUnicode(string)

Checks whether specified unicode entity is a valid unicode emoji.

ToString()

Returns a string representation of this emoji.

TryFromGuildEmote(BaseDiscordClient, ulong, out DiscordEmoji)

Attempts to get an emoji object from an guild emote.

TryFromName(BaseDiscordClient, string, out DiscordEmoji)

Attempts to create an emoji object from emote name that includes colons (eg. 🤔). This method also supports skin tone variations (eg. 👌:skin-tone-2:), standard emoticons (eg. :D), as well as guild emoji (still specified by :name:).

TryFromName(BaseDiscordClient, string, bool, bool, out DiscordEmoji)

Attempts to get an emoji object from emote name that includes colons (eg. 🤔). This method also supports skin tone variations (eg. 👌:skin-tone-2:), standard emoticons (eg. :D), as well as guild emoji (still specified by :name:).

TryFromUnicode(BaseDiscordClient, string, out DiscordEmoji)

Attempts to create an emoji object from a unicode entity.

TryFromUnicode(string, out DiscordEmoji)

Attempts to create an emoji object from a unicode entity.

Operators

operator ==(DiscordEmoji, DiscordEmoji)

Gets whether the two DiscordEmoji objects are equal.

implicit operator string(DiscordEmoji)

Implicitly converts this emoji to its string representation.

operator !=(DiscordEmoji, DiscordEmoji)

Gets whether the two DiscordEmoji objects are not equal.