how to wait for and grab chat message #315
-
Either this is not possible, or so easy that its staring me in the face and im severely overthinking this. I'm trying to implement a system where the user presses a component button, then the bot waits for a chat message from the same user in the same channel, takes that input and processes it. I have considered the use of Are there any half decent ways of implementing a system like this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Add a If you want to wait for a specific message from the user, you could use |
Beta Was this translation helpful? Give feedback.
Add a
*MessageCreateEvent
handler as usual. This is demonstrated in thesimple
example.If you want to wait for a specific message from the user, you could use
ChanFor
and add a new handler on demand, or you can use a single handler and an internal registry of waiting users.