interactive data collection
I have an "interactive" chat with the bot, it asks me questions, I answer them and it saves that information to send it in a single message later on x channel, it worked normally, but I wanted to add some buttons so that depending on what they choose in the buttons the bot will continue a different code, the fact is that with the buttons I could only implement 1 action and the action is continued in a 'client.on('messageCreate', async (message) => {' because if not I won't It worked, but when collecting data, it only collects the first one and leaves the rest as undefined
4 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!
- ✅
Marked as resolved by OPThese are the console logs, it only gave me 2 of the 4 that I asked for, after those two it literally only skips the part of collecting data, and sends the ticket
In addition to that, the bot somehow "loses" the user's name, since the thread it creates as undefined should be the user's name plus the date, which before it did so (I'm regretting adding those buttons xd )
I already solved it using other logic in my code