I\'m creating a \"server info\" command for my Discord bot: how can I display the number of voice channels?
voice
in the predicate function.Consider this example:
const voiceChannelCount = message.guild.channels.filter(c => c.type === 'voice').size;