Table of Contents

Method FromName

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

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:).

public static DiscordEmoji FromName(BaseDiscordClient client, string name, bool includeGuilds = true, bool includeApplication = true)

Parameters

client BaseDiscordClient

BaseDiscordClient to attach to the object.

name string

Name of the emote to find, including colons (eg. 🤔).

includeGuilds bool

Should guild emojis be included in the search.

includeApplication bool

Should application emojis be included in the search.

Returns

DiscordEmoji

Create DiscordEmoji object.