adri326 / unnamed-8.txt

Unnamed (8).txt - a Discord Bot
0 stars 0 forks source link

having some troubles #1

Open Dinip opened 5 years ago

Dinip commented 5 years ago

Hey, I was trying to organize the roles and messages by "groups". For example, have a message saying "Languages" and the some coding langues as reaction then another message saying "Games" with gaming icons to react. But there seems to be a "problem?"... as you can see on the image, first I've set the message and then a role to that message, then I've set another message and a role to it. Seems that the 2 message took the 2 reactions, both working and the first message is also still working. Idk if I was clear... My english is not the best also :( Thank you! 👍 image

edit: idk it is supposed to have 2 messages accepting reactions...

adri326 commented 5 years ago

Hello, the bot does not support multiple messages, it internally stores:

As you change the current message, it does not remove the emotes on the old current-marked message.

As you add a role, it updates the reactions on the current-marked message, so that they are available (it should've also done it when you changed the current message, I will have to fix this).

Looking at your image, nothing seems wrong, but you said that both messages were still working, which is an error. I believe it is due to me having been tired and having typed if (!context.id === cfg.message) return; instead of if (context.id !== cfg.message) return;.

I will fix this as soon as possible, thanks for letting me know!

Shad Amethyst