• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: How do I make my bot send a message after user has replied to a question

Resolved: How do I make my bot send a message after user has replied to a question

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Im trying to make a system where a user is give a question by the bot and the user replies, then it clears the 2 messages and ask another question and repeats untill all the questions are complete
i can’t get it to wait for the user to input their answer before asking another question, any help?

Answer:

You should use Collectors and I think awaitMessages : https://discordjs.guide/popular-topics/collectors.html#await-messages
Its a totally different way to do it but simpler
Something like that :
That is returning the first message (or messages) that contain(s) the valid answer to your question. After that you can run your treatement!

If you have better answer, please add a comment about this, thank you!

discord
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: PyCharm cannot see my newly compiled .pyc see on import

27/03/2023

Resolved: I am facing ERR_HTTP2_PROTOCOL_ERROR on my website

27/03/2023

Resolved: TypeScript does not recognize properties when instantiating interface array

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.