fix: make subcommand options optional (#241)

This commit is contained in:
GC
2021-11-20 04:19:28 +11:00
committed by GitHub
parent fa54b9de55
commit 7379a345e8
4 changed files with 4 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ export type APIApplicationCommandInteractionDataOption =
export interface ApplicationCommandInteractionDataOptionSubCommand {
name: string;
type: ApplicationCommandOptionType.Subcommand;
options: APIApplicationCommandInteractionDataOptionWithValues[];
options?: APIApplicationCommandInteractionDataOptionWithValues[];
}
export interface ApplicationCommandInteractionDataOptionSubCommandGroup {

View File

@@ -160,7 +160,7 @@ export type APIApplicationCommandInteractionDataOption =
export interface ApplicationCommandInteractionDataOptionSubCommand {
name: string;
type: ApplicationCommandOptionType.Subcommand;
options: APIApplicationCommandInteractionDataOptionWithValues[];
options?: APIApplicationCommandInteractionDataOptionWithValues[];
}
export interface ApplicationCommandInteractionDataOptionSubCommandGroup {

View File

@@ -164,7 +164,7 @@ export type APIApplicationCommandInteractionDataOption =
export interface ApplicationCommandInteractionDataOptionSubCommand {
name: string;
type: ApplicationCommandOptionType.Subcommand;
options: APIApplicationCommandInteractionDataOptionWithValues[];
options?: APIApplicationCommandInteractionDataOptionWithValues[];
}
export interface ApplicationCommandInteractionDataOptionSubCommandGroup {

View File

@@ -160,7 +160,7 @@ export type APIApplicationCommandInteractionDataOption =
export interface ApplicationCommandInteractionDataOptionSubCommand {
name: string;
type: ApplicationCommandOptionType.Subcommand;
options: APIApplicationCommandInteractionDataOptionWithValues[];
options?: APIApplicationCommandInteractionDataOptionWithValues[];
}
export interface ApplicationCommandInteractionDataOptionSubCommandGroup {