pls help me. how do i make a clean message command for my discord bot using node.js
so i started making a bot for my discord server, i done all of the respond commands now i need is how to delete multiple messages for my bot, Pls help me
cookieisgud
please mark as correct answer, thanks!
Whacko
client.on('message', msg => { if (msg.content == "ping") { msg.channel.send("Pong!"); } });
You can use the bulk delete function that discord.js provides here.
Just fetch messages from a channel and bulk delete them.
Ex: