#Does the message collector time resets when it receives a message?

10 messages · Page 1 of 1 (latest)

remote bolt
#

Does the message collector time resets when it receives a message? For example, the collector time is 5 minutes and in that period, if someone sends a message, will it reset the message collector time back to the 5 minutes or no?

twin pelicanBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

remote bolt
#

Discord.js version doesn't matter | Node version is v18.1.x

errant tangle
#

time won't reset, idle will

remote bolt
#

I am a little bit confused here

#

what exactly is idle? I am guessing it's a state which determine the collector end?

errant tangle
#

it's also a collector option which behaves similar to time except it resets when something is collected

remote bolt
#

Is it possible to keep the collector running if it receives a message? like resetting the time in some way?

errant tangle
#

there are multiple ways to end a collector, if not specified they won't end it. e.g. if you don't specify max the collector will collect as many as there are until another option causes it to stop