Home > Software design >  ReactionCollector in Discord.js user.send() is not a function
ReactionCollector in Discord.js user.send() is not a function

Time:12-12

I created a ReactionCollector for my Discord Bot, but if I want to send a message to the user the error user.send() is not a function comes up. My Discord.js version is v11.

    const filter = (reaction, user) => {
        return validEmojis.includes(reaction.emoji.name) && user.id !== bot.user.id;
};
    const collector = message.createReactionCollector(filter)

    collector.on('collect', (reaction, user) => {
        if (reaction.emoji.name === "           
  • Related