types(ApplicationCommandOptionData) changed options type (#6347)

* Changed ApplicationCommandOptionData interface

The options type `this[]` as a self reference causes issues when implementing this interface. Changing this to ApplicationCommandOptionData[] fixes this issue
https://imgur.com/a/0eVBoJU

* fixed ApplicationCommandOption

* Update typings/index.d.ts

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
JeroenoBoy
2021-08-08 18:37:58 +02:00
committed by GitHub
parent 5f1def3793
commit efc20ff669

3
typings/index.d.ts vendored
View File

@@ -2879,11 +2879,12 @@ export interface ApplicationCommandOptionData {
description: string; description: string;
required?: boolean; required?: boolean;
choices?: ApplicationCommandOptionChoice[]; choices?: ApplicationCommandOptionChoice[];
options?: this[]; options?: ApplicationCommandOptionData[];
} }
export interface ApplicationCommandOption extends ApplicationCommandOptionData { export interface ApplicationCommandOption extends ApplicationCommandOptionData {
type: ApplicationCommandOptionType; type: ApplicationCommandOptionType;
options?: ApplicationCommandOption[];
} }
export interface ApplicationCommandOptionChoice { export interface ApplicationCommandOptionChoice {