Is there any option to wait for user response message in discordgo? I'm looking for something similar to discord.js awaitMessages.
CodePudding user response:
No, but you can make a collection that holds message and event information and checking news messages.
Simply
- 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.