Skip to content

Commit

Permalink
types(ApplicationCommandOption): add ApplicationCommandBooleanOption (
Browse files Browse the repository at this point in the history
  • Loading branch information
janparisek committed Aug 10, 2022
1 parent aac8acc commit 38275fc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/discord.js/typings/index.d.ts
Expand Up @@ -3835,6 +3835,10 @@ export interface ApplicationCommandStringOptionData extends ApplicationCommandCh
max_length?: number;
}

export interface ApplicationCommandBooleanOptionData extends BaseApplicationCommandOptionsData {
type: ApplicationCommandOptionType.Boolean;
}

export interface ApplicationCommandNumericOption extends ApplicationCommandChoicesOption {
type: CommandOptionNumericResolvableType;
minValue?: number;
Expand All @@ -3847,6 +3851,10 @@ export interface ApplicationCommandStringOption extends ApplicationCommandChoice
maxLength?: number;
}

export interface ApplicationCommandBooleanOption extends BaseApplicationCommandOptionsData {
type: ApplicationCommandOptionType.Boolean;
}

export interface ApplicationCommandSubGroupData extends Omit<BaseApplicationCommandOptionsData, 'required'> {
type: ApplicationCommandOptionType.SubcommandGroup;
options?: ApplicationCommandSubCommandData[];
Expand All @@ -3866,6 +3874,7 @@ export interface ApplicationCommandSubCommandData extends Omit<BaseApplicationCo
| ApplicationCommandAutocompleteOption
| ApplicationCommandNumericOptionData
| ApplicationCommandStringOptionData
| ApplicationCommandBooleanOption
)[];
}

Expand All @@ -3890,6 +3899,7 @@ export type ApplicationCommandOptionData =
| ApplicationCommandAutocompleteOption
| ApplicationCommandNumericOptionData
| ApplicationCommandStringOptionData
| ApplicationCommandBooleanOptionData
| ApplicationCommandSubCommandData;

export type ApplicationCommandOption =
Expand All @@ -3899,6 +3909,7 @@ export type ApplicationCommandOption =
| ApplicationCommandChoicesOption
| ApplicationCommandNumericOption
| ApplicationCommandStringOption
| ApplicationCommandBooleanOption
| ApplicationCommandAttachmentOption
| ApplicationCommandSubCommand;

Expand Down

1 comment on commit 38275fc

@vercel
Copy link

@vercel vercel bot commented on 38275fc Aug 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.