From 5566404850029cc6e17d96695ee4ff8f3614e143 Mon Sep 17 00:00:00 2001 From: Rodry <38259440+ImRodry@users.noreply.github.com> Date: Tue, 12 Oct 2021 20:11:11 +0100 Subject: [PATCH] types(ApplicationCommandOptionData): remove required on subcommands (#6790) --- typings/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 6ca1e7e65..8408dfbd6 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3217,22 +3217,22 @@ export interface ApplicationCommandChoicesOption extends BaseApplicationCommandO choices?: ApplicationCommandOptionChoice[]; } -export interface ApplicationCommandSubGroupData extends BaseApplicationCommandOptionsData { +export interface ApplicationCommandSubGroupData extends Omit { type: 'SUB_COMMAND_GROUP' | ApplicationCommandOptionTypes.SUB_COMMAND_GROUP; options?: ApplicationCommandSubCommandData[]; } -export interface ApplicationCommandSubGroup extends BaseApplicationCommandOptionsData { +export interface ApplicationCommandSubGroup extends Omit { type: 'SUB_COMMAND_GROUP'; options?: ApplicationCommandSubCommand[]; } -export interface ApplicationCommandSubCommandData extends BaseApplicationCommandOptionsData { +export interface ApplicationCommandSubCommandData extends Omit { type: 'SUB_COMMAND' | ApplicationCommandOptionTypes.SUB_COMMAND; options?: (ApplicationCommandChoicesData | ApplicationCommandNonOptionsData | ApplicationCommandChannelOptionData)[]; } -export interface ApplicationCommandSubCommand extends BaseApplicationCommandOptionsData { +export interface ApplicationCommandSubCommand extends Omit { type: 'SUB_COMMAND'; options?: (ApplicationCommandChoicesOption | ApplicationCommandNonOptions | ApplicationCommandChannelOption)[]; }