Skip to content
Advertisement

Bot doesn’t want to add roles on reaction [closed]

I want bot to add role and remove another one for those who reacts on message.

JavaScript

But when I am reacting to that message nothing happens(there is no anything in console as well).

Advertisement

Answer

I think you’re making a mistake while checking the emoji. Try replacing this:

JavaScript

with this:

JavaScript

Alternative to the emoji, you can use the Unicode u2705.

Note: You can also use payload.emoji.name instead of payload.emoji. It’ll still work.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement