Quantcast
Channel: Is there a way to access the children of a CategoryChannel before it is deleted? [Discord.js] - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


Is 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>