Hello was doing a slashcommandbuilder in discord.js V14 command and I can’t get it to select only text type channels –>
const commands = [
new SlashCommandBuilder()
.setName('setup')
.setDescription('Setup the embed.')
.addChannelOption(option => option
.setName('channel')
.setDescription('text channel')
.setRequired(true)
)
.toJSON(),
];
I ran it and it works except that it offers me all the channel categories, vocals, text whereas I only wanted the text channels