-
-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
Description
Issue description
try to use type APIApplicationCommandSubcommandOption or APIApplicationCommandSubcommandGroupOption
see that they have a required boolean property instead of being never
Discord Docs: https://discord.com/developers/docs/interactions/application-commands#:~:text=all%20but,SUB_COMMAND_GROUP
Code sample
const testSubcommandOption: APIApplicationCommandSubcommandOption = {
description: 'test',
name: 'test',
type: ApplicationCommandOptionType.Subcommand,
options: [],
required: true
}
const testSubcommandGroupOption: APIApplicationCommandSubcommandGroupOption = {
name: 'testGroup',
description: 'test group',
type: ApplicationCommandOptionType.SubcommandGroup,
options: [],
required: false
}Package version
0.38.38
Runtime
Node.js
Runtime version
v23.10.0
Priority this issue should have
Low (slightly annoying)
Reactions are currently unavailable