Reputation: 832
I would like to set max
as 'infinite', I would like the user to be able to react more than once, I've tried setting this value to an highier than 1 but if i do that it doesn't work
embedMessage
.awaitReactions(
(reaction, user) => emoji.includes(reaction.emoji.name),
{ max: 1, time: timeOut && 3600000 } //1h
)
.then((collected) => {
console.log("test");
})
.catch((e) => {
message.reply(e);
});
Upvotes: 0
Views: 185
Reputation: 124
As said in the djs guide, you must set the GUILD_MESSAGE_REACTIONS
intent flag, else discord does not send you the reaction events.
All the flags are defined here.
Upvotes: 1