I'm currently trying to create a bot that reacts to a message that pings it with whatever emoji is included in the message that pings it (So for example @Robot#1234 :robot:
would get a :robot:
reaction). I've easily figured out how to identify the emojis sent, and reacting with custom emotes is easy (as you can just do message.react("<:customRobot:12345>");
). But, as every google listing will tell you, you have to get the actual unicode representation of whatever emoji you want to react with if you're going to use it, so you can't just do message.react("<:robot:838287833931317288>");
.
With that being said: Is there any way to dynamically find and convert the <:name
:id
> representation of a unicode emoji into the actual string form of a unicode emoji? (Which for :robot:
would be )