#Reaction Message
1 messages · Page 1 of 1 (latest)
@marble light dude
Im try to make reaction message
if someone react it, the bot will send msg how?
<:_:874569335308431382> Message#createReactionCollector()
Creates a reaction collector.
i alr read docs fpr message#CreateReactipnCollect
but
how i cache the role using id?
const filter = async (reaction, user) => {
return reaction.guild.emojis.cache.get === '940921162723106866'
}
const filters = async (reaction, user) => {
return reaction.guild.emojis.cache.get === '940921111640686642'
}
const collectors1 = msg.createReactionCollector({ filter, time: 60000 })
const collectors2 = msg.createReactionCollector({ filter, time: 60000 })
collectors1.on('collect', async c => {
if(c.user.id.react('940921162723106866')) {
c.deferUpdate();
return c.followUp(`ABCD`);
}
})```
this?
roles are always cached iirc
emoji i meant
that's not how .get() works
Emm so how?
.get(id)
it's reaction.message.guild
collect event gives you the messagereaction and a user
and user.id.react will never be a thing
and its also not an interaction, so why do you think deferUpdate will work
I suggest you take a look at the guide
https://discordjs.guide/popular-topics/collectors.html#reaction-collectors
The Await reactions part?
emm oh ya