我试图将SlashCommandBuilder
用于discord.js V14命令,但我无法让它只 Select text type channels.
我当前的代码如下:
const commands = [
new SlashCommandBuilder()
.setName('setup')
.setDescription('Setup the embed.')
.addChannelOption(option => option
.setName('channel')
.setDescription('text channel')
.setRequired(true)
)
.toJSON(),
];
我运行了它,它工作,但它提供给我all个频道类别,人声和文字,而我只想要文字频道.