Home > Net >  Discord js v12 Send message if someone reacts to embed
Discord js v12 Send message if someone reacts to embed

Time:12-02

I'm currently making a discord bot using discord.js v12 (yes 12 not 13), I made a command that the bot sends an embed and reacts to it, in the filter I set the max to 2 (max: 2, ...). I want that every time someone reacts with this embed that like his name will be send in the channel. My current concept is this(it's in a function because I don't want to but everything in the switch):

async function fun_2p() {
  const reactionMessage2p = await message.channel.send(embed2p);
  const filter2p = (reaction, user) => user.id !== bot;

  await reactionMessage2p.react('           
  • Related