#setTimeout
3 messages · Page 1 of 1 (latest)
if i were to run a command, i want the bot to respond saying "you have 5 seconds to respond"
then if that user doesnt reply within 5 seconds, the bot then says "you did not respond in time"
setTimeout() global function
The global setTimeout() method sets a timer which executes a function or specified piece of code once the timer expires.