#Get categories in Djs v14
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
• 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.
async function getChannels(guild) {
await guild.channels.fetch();
console.log(guild.channels.cache.filter(channel => channel.type === 'GUILD_CATEGORY').map(category => category.name));
}
``` even this doesn't work
Use ChannelType.GuildCategory