serverinfo interaction slash command showing 3 channels, but I have only 2 channels in the server.
It is including the category too, how I fix it?
Here is the code -
if (commandName === 'serverinfo') {
let serverinfoembed = new MessageEmbed()
.setAuthor(`Info for ${interaction.guild.name}`)
.setColor('#4269f5')
.addField('Owner', `<@${interaction.guild.ownerId}>`, true)
.addField('Channels', `${interaction.guild.channels.cache.size}`, true)
return interaction.reply({ embeds: [serverinfoembed] });
};