Ignore channels from a category using filter
i'm doing a command to get all the channels and it's working, but I wanted to ignore the channels of a specific category using the filter, how could I do that?
let options = await interaction.guild.channels.cache.filter(ch => ch.type == 0).map((channel) => ({
label: `${channel.name}`,
description: `ID: ${channel.id}`,
value: channel.id,
}));