Is there any option to wait for user response message in discordgo? I’m looking for something similar to discord.js awaitMessages.
No, but you can make a collection that holds message and event information and checking news messages.
- Make a collection/array
- Add message information
- Check if the incoming message in the message event handler is in the collection
- Handle event
- Remove from collection
Don’t forget set a timeout and clear expired data from collection.
Answered By – Eren A. Akyol
Answer Checked By – Katrina (GoLangFix Volunteer)