I'm making a bot that auto-sets up a server, and I was wondering how to delete all channels and categories in a server.
The code is very simple:
message.guild.channels.forEach(channel => channel.delete())
That should do it.
Remember to use this in response of a message, or message will be undefined
message
1.4m articles
1.4m replys
5 comments
57.0k users