↧
Answer by GCreeper00 for Is there a way to access the children of a...
You can use the channelUpdate event.According to the discord docs, here, when the category is deleted, the channelUpdate event is fired for all the children. You will still have to cache it...
View ArticleAnswer by Palm for Is there a way to access the children of a CategoryChannel...
Why?Unfortunately, this is how CategoryChannels work in discord.js...When the category is deleted, discord.js sends a request to the API to delete the channel. Only then, Discord sends you the event...
View ArticleIs there a way to access the children of a CategoryChannel before it is...
I handle a channelDelete event in my discord bot.My original intent was to do the following:Listen for when a channel is deletedCheck to see if its type equals 'GUILD_CATEGORY'Delete all the channels...
View Article