discord.js-pagination icon indicating copy to clipboard operation
discord.js-pagination copied to clipboard

Doesn't remove the reaction

Open FC5570 opened this issue 4 years ago • 2 comments

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

FC5570 avatar Aug 08 '20 09:08 FC5570

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.

Alcremie avatar Sep 23 '20 03:09 Alcremie

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.

psibean avatar Jan 18 '21 09:01 psibean