#Deleting all channels in a category

1 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();
    });