#confused about something in the guide

18 messages · Page 1 of 1 (latest)

austere waveBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

shrewd onyx
tardy finch
#

confused about something in the guide

#

so in the guide for interaction collectors, it has

#

message.createMessageComponentCollector():

#

or something

#

what is message?

shrewd onyx
#

A Message

tardy finch
#

like

#

how do you get it?

#

like is it imported from discord.js

#

do I have to do const { ..... , Message } = require discord.js??

shrewd onyx
#
const message = await interaction.reply({ content, components: [buttons], fetchReply: true })
tardy finch
#

oh

#

is the fetchReply required for it to work in the component collector?

sweet current
#

yes, cus it wud return nothing

shrewd onyx
#

Yes, otherwise it would return undefined

tardy finch
#

thank you a lot 🙂