see, in the end of my command, I have this:
const awnserEmb = await message.channel.send({ embeds: [exampleEmbed] });
(awnserEmb).react('❓')
const filter = (reaction, user) => {
return (
['❓'].includes(reaction.emoji.name) && user.id === message.author.id);
};
awnserEmb
.awaitReactions(filter, { max: 1, time: 60000, errors: ['time'] })
.then((collected) => {
const reaction = collected.first();
if(reaction.emoji.name === '❓'){
message.channel.send('Mais informação')
}
})
.catch((collected) => {
message.channel.send('nada aconteceu');
});
but doesn't work! says that awaitReactions is not a function!
Reactions for the use you want are deprecated in v13 unless you have privileged intents turned on
So I recommend the following
You can try the new Interactive Buttons or Menus
If you don't want to update to v13 (you will have to) Use a Reaction Collection