Ok so basically I am making a reaction collector but for some reason when I use the reaction collector on an embed it wont work.
const sendembed = new Discord.MessageEmbed()
.setTitle(`test`)
.setAuthor(message.author.username)
.setFooter(`RO`)
const msg = message.channel.send(sendembed).then(async msg => {
await msg.react('π');
await msg.react('π');
const filter = (reaction,user) => ['thumbsup','thumbsdown'].includes(reaction.emoji.name) && user.id === message.author.id
const collectore = msg.createReactionCollector(filter)
collectore.on('collect', async r => {
switch(r.emoji.name) {
case 'thumbsup':
message.channel.send('Hello')
collector.stop();
break;
case 'thumbsdown':
message.channel.send('Bye')
collector.stop();
break;
}
})
})