waiting for interaction collector to finish before executing another function
code:
discord.js v14.11.0
node.js v16.17.0
Goal: Have the
interaction.followUp() statement run after MessageComponentCollector is finished collecting.
What's happening currently: interaction.reply() and interaction.followUp() run right after the other, without waiting for the collector to finish4 Replies
⢠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.there's no way around it? the for loop after the end event is meant to execute multiple more message comp collectors, each time relying on data from the previous to execute. i want to see if i can do this without recursion
Message#awaitMessageComponent()
Collects a single component interaction that passes the filter. The Promise will reject if the time expires.i took a look at the documentation. seems to only return the first interaction. is there any way to return all the interactions or do i need to promisify messagecomponentcollector myself?
gotcha