10 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Above your collecter try
infinity
it comes out when I check that if the user did not enter the captcha correctly, he sent a new one, yes, he sends everything works, but when I click on the button on the new captcha, an error pops out, and so everything works. It's just that this mistake is bothering me.
If you are waiting for button or select menu input from a specific message, don't create the collector on the channel.
- Channel collectors return component interactions for any component within that channel.
Also modals arent measage components
You also cannot show a modal after another one
ah wait, you return if it is one, but it will never be one
You cannot defer and show a modal
?
Your collector wont prevent the interactionCreate event from firing
So your button might still be handled there
But still this
I'll try it right now
const collector = user.dmChannel.createMessageComponentCollector({ filter, time: 60000 });
Still this