I am making a Discord.js Bot that is supposed to log when a channel is created in a specific category.
My Discord Server looks like this (just to clarify what I mean with category):
So for example if channel2 is created in the Category the bot will console log something but if the channel isn't created in the category the bot will do nothing.
This is what I came up with:
client.on("channelCreate", function(channel){
console.log(`channelCreated: ${channel}`);
});
This code didn't work for me because it logs every channel creation and not only the ones in the category.
If you know how to solve this problem let me know ;)
Thanks in advance