discord.js-pagination
discord.js-pagination copied to clipboard
Doesn't remove the reaction
I use this for a help command, whenever I use the help command, it removes my reaction, but doesnt do that for others, they have to manually remove the reaction. Do something bout it man
Since ReactionCollector#event:collect
emits a User
as its second argument, you could open a PR where you add user
as the second parameter to the callback and change reaction.users.remove(msg.author);
to reaction.users.remove(user);
. That would solve your problem.
My PR fixes this issue by doing just this, it has the same functionality as the current version by default, but exposes much more customizability.