Question about the type of channel option type for the slash command

I have a question about ApplicationCommandOptionChannelTypesMixin.addChannelTypes() and APIApplicationCommandChannelOption.channel_types. In APIApplicationCommandChannelOption.channel_types, ChannelType.GuildDirectory is allowed, but not in the builder addChannelTypes(). Which is the correct behavior?
I would appreciate any clarification you can give me. (This text is a translation, so please forgive me if there are any mistakes.)
4 Replies
d.js toolkit
d.js toolkit5mo ago
GitHub
GitHub5mo ago
:pr_merge: #1300 in discordjs/discord-api-types by Jiralite merged <t:1752424402:R> fix(APIApplicationCommandChannelOption): Exclude directory channels
pi
piOP5mo ago
Thanks for fixing it!
d.js toolkit
d.js toolkit5mo ago
The thread owner has marked this issue as solved.

Did you find this page helpful?