As far as I know, get_all_emojis has been deprecated and I've been struggling to find a replacement. How do I make a bot add reactions to its own messages with a custom emoji?
What I'm really struggling with is getting the "emoji" variable in the line:
message.add_reaction(emoji)
If I can get that, I'm pretty sure the line above would work. How do I do this?
You need to inform as emoji
, the code of your custom emoji. To get the code, type in a discord channel \:emoji_name:
.
The code of a custom emoji has the pattern <:name:id>
or <a:name:id>
in the case of animated emojis.
message.add_reaction("<:Vip:897596558323908678>")