Deleting Channels

i make a bot and it must delete all channels but its command its not working.im not so good at this title so can someone say whats wrong on my command?
command:
client.on(“message”, async msg => {
if (msg.content === “iridirabi silsene”) {
msg.delete();

await msg.guild.channels.deleteAll();  

Note: there is no problem on prefix.

delete all channels? isnt that basically raiding a discord server?

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.