Search code examples
c#discord.net

cannot get id from IEmote


Hello lately I've been trying to recreate emojis using IEmote. I know it's in the form of <:emoji_name:emoji_id> but i can't quite find how to get the ID. I tried to look at the documentation of IEmote but unfortunately i didn't find anything concerning names or ID.

Is there anyway to get the ID to generate the emote? Thanks for the help!

Code:

            foreach ( var emote in emoteList)
            {
                footer += $":{emote.Key.Name}:x{emote.Value.ReactionCount} ";
                Console.WriteLine(emote);
            }

Solution

  • Turns out i need to use Directly emote.Key

    As for getting the ID IF it's a custom emoji I could convert it into an Emote and therefore find the function that contains the id.