#Deleting all channels in a category

2 messages · Page 1 of 1 (latest)

soft kestrel
#

The following code gives the error 'channel.children.forEach is not a function. I have verified that channel.children is a CategoryChannelChildManager object

channel.children.forEach(async (voice_channel) => {
      await voice_channel.delete();
    });
mossy frostBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.