Method FromName
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
FromName(BaseDiscordClient, string, bool)
Creates 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:).
public static DiscordEmoji FromName(BaseDiscordClient client, string name, bool includeGuilds = true)
Parameters
client
BaseDiscordClientBaseDiscordClient to attach to the object.
name
stringName of the emote to find, including colons (eg. 🤔).
includeGuilds
boolShould guild emojis be included in the search.
Returns
- DiscordEmoji
Create DiscordEmoji object.