Answers for "How to delete a message by its id discord.js"

2

delete message discord.js

message.delete()
Posted by: Guest on August-24-2020
0

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

Code answers related to "How to delete a message by its id discord.js"

Browse Popular Code Answers by Language