Waiting the end of a collector (response or timeout) before sending another one

Hello there ~ Each time a user send a DM to my Bot, I want it to send an embed with buttons or reaction which represents the various possible actions. However, I don't want the bot to send X times this embed if the user send X messages in a raw. I want to wait that the last embed get an answer or time out. So, is there a way to check that there is already an existing embed that is waiting for a response ?
1 Reply
d.js toolkit
d.js toolkit11mo ago
- 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!