Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to delete a message by its id discord.js

// ASSUMPTIONS:
// channel: the channel you want the message to be sent in
// lastmsg: the id of the last poll message

channel.fetchMessage(lastmsg).then(msg => msg.delete());
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #delete #message #id
ADD COMMENT
Topic
Name
3+4 =