Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord js delete message after time

message.reply('Invalid command')
  .then(msg => {
                msg.delete({ timeout: 20000 /*time unitl delete in milliseconds*/});
            })
  .catch(/*Your Error handling if the Message isn't returned, sent, etc.*/);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discord #js #delete #message #time
ADD COMMENT
Topic
Name
4+6 =