From efc20ff669514b2b504a7ceb5038fda25b75ff6d Mon Sep 17 00:00:00 2001 From: JeroenoBoy Date: Sun, 8 Aug 2021 18:37:58 +0200 Subject: [PATCH] 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 --- typings/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 6c63dc8fa..6155282be 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2879,11 +2879,12 @@ export interface ApplicationCommandOptionData { description: string; required?: boolean; choices?: ApplicationCommandOptionChoice[]; - options?: this[]; + options?: ApplicationCommandOptionData[]; } export interface ApplicationCommandOption extends ApplicationCommandOptionData { type: ApplicationCommandOptionType; + options?: ApplicationCommandOption[]; } export interface ApplicationCommandOptionChoice {