Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to delete a message by its id

// 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: #delete #message #id
ADD COMMENT
Topic
Name
1+2 =