Answers for "how to delete a message by its id"

0

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());
Posted by: Guest on October-28-2021
0

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());
Posted by: Guest on October-28-2021

Code answers related to "how to delete a message by its id"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language