Alanec
Alanec
DIAdiscord.js - Imagine an app
Created by Alanec on 2/2/2024 in #djs-questions
Detect bot removed reaction and return in messageReactionRemove
Node: 20.8.0 discordjs: 14.14.1 I think i'm losing my mind. I swear at one point the following was true:
await reaction.users.remove(fullUser);
await reaction.users.remove(fullUser);
removed a users reaction. This is still true. But then i used to be able to detect in the Events.MessageReactionRemove if the bot was the one who removed the reaction and return early. I must be going crazy though because nothing works.
client.on(Events.MessageReactionRemove, async (reaction, user) => {
if (user.id === user.client.user.id) {
return;
}
if (user.bot) {
return;
}
client.on(Events.MessageReactionRemove, async (reaction, user) => {
if (user.id === user.client.user.id) {
return;
}
if (user.bot) {
return;
}
The user is always the user who reaction initially, not the one removing. Maybe this has always been the case and there is no solution to my problem. I just need to know one way or another if it's possible or ever was possible.
9 replies