#Reaction Message

1 messages · Page 1 of 1 (latest)

hybrid parrot
#

@marble light dude

#

Im try to make reaction message

#

if someone react it, the bot will send msg how?

inland stag
#

he told u no?

#

listen to the messageReactionAdd event

stone questBOT
hybrid parrot
#

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?
marble light
hybrid parrot
marble light
hybrid parrot
marble light
hybrid parrot
marble light
hybrid parrot
twilit merlin
#

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

hybrid parrot