My changes will check if users react to a specific message with a specific emoji and perform some action if they do. Please note that the bot must have the MANAGE_MESSAGES permission or the act of removing the reaction from the message will fail horribly. I added a TODO that I can address at a later time, but I wanted to make sure this change was actually addressing issue #12 like you wanted.
Additionally, I changed the deprecated message listener we were using with messageCreate to avoid potential issues in the future.
I didn't get to test custom emoji's because I don't have any on my server, but it should work just fine if you do something like:
if (reaction.emoji.name === 'sip') { console.log('sipping'); }
Which will hopefully detect the <:sip:679842051055026211> emoji you have on your Discord server.
That should have converted all spaces to tabs. I used the option in VS code to convert all indentions to tabs. Please let me know if any lingering space indention remains.
My changes will check if users react to a specific message with a specific emoji and perform some action if they do. Please note that the bot must have the MANAGE_MESSAGES permission or the act of removing the reaction from the message will fail horribly. I added a TODO that I can address at a later time, but I wanted to make sure this change was actually addressing issue #12 like you wanted.
Additionally, I changed the deprecated message listener we were using with messageCreate to avoid potential issues in the future.
I didn't get to test custom emoji's because I don't have any on my server, but it should work just fine if you do something like:
if (reaction.emoji.name === 'sip') { console.log('sipping'); }
Which will hopefully detect the <:sip:679842051055026211> emoji you have on your Discord server.