From 100a47ba814b21e18a403c349ecf9a16b1ecb7d0 Mon Sep 17 00:00:00 2001 From: taahamahdi Date: Sat, 31 Dec 2022 03:33:30 -0500 Subject: [PATCH] Add localization fields for slash command options --- index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/index.d.ts b/index.d.ts index 73c1f25ae..5be545973 100644 --- a/index.d.ts +++ b/index.d.ts @@ -215,7 +215,9 @@ declare namespace Eris { autocomplete?: boolean; choices?: ApplicationCommandOptionChoice[]; description: string; + description_localizations?: { [locale: string]: string }; name: string; + name_localizations?: { [locale: string]: string }; required?: boolean; type: T; } @@ -223,16 +225,20 @@ declare namespace Eris { autocomplete?: boolean; choices?: ApplicationCommandOptionChoice[]; description: string; + description_localizations?: { [locale: string]: string }; max_value?: number; min_value?: number; name: string; + name_localizations?: { [locale: string]: string }; required?: boolean; type: T; } interface ApplicationCommandOption]> { channel_types: T extends Constants["ApplicationCommandOptionTypes"]["CHANNEL"] ? ChannelTypes | undefined : never; description: string; + description_localizations?: { [locale: string]: string }; name: string; + name_localizations?: { [locale: string]: string }; required?: boolean; type: T; }