F
F
frykktik2022-01-13 19:46:08
Python
frykktik, 2022-01-13 19:46:08

Adding bot reactions to new messages in the channel, how to do it?

Good day, I'm making a bot for my Discord channel, I need the bot in the news channel to automatically set reactions to new messages in this channel, relying on my knowledge and documentation, I made this code:

if m.channel.id == 930870896107860031:
      await m.add_reaction(" ")

But the documentation says about some kind of emoji id, but I didn’t find it. Help me insert the emoji I need -> ("") as I understand it here. For example, let's take the dollar emoji, which is spelled ":dollar:" in Discord.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2022-01-13
@Vindicar

From documentation

The emoji may be a unicode emoji or a custom guild Emoji.

Those. the easiest way is to copy and paste the desired Unicode character ("????") into this string, or specify its code ("\U0001F4B5"). You can find both on this site .
Note: Since this site uses HTML markup for text, you must specify unicode characters as XML entities:  will give ????

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question