how do I set the send Typing() timeout?
I have a bot that sends a response to requests for a long time, I would like send Typing to work until the bot responds, now sendTyping works for 5-10 seconds and disappears
13 Replies
- 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!You can use deferReply if that what you mean
And then you can editReply to reply
I need send Typing to work until a message is sent by the bot
the send typing lasts for 10 seconds
There is this code, it uses the message.channel method.Send Typing() I also used a crutch to stop it because if typingFlag is removed, then Send Typing starts working indefinitely even after sending a message by the bot
if you send a message, it will stop aswell
however, when the bot takes a long time to respond to the request, send Typing stops ahead of time
how to make it work so that it works until the bot responds with a message?
maybe you need to somehow throw it into a separate stream?
just make a loop, and then remove it once the message is sent
Okay I'll try it now
working thanks @luna🌈