From d503c712520f67f2378a22d5149d1724af4d7a11 Mon Sep 17 00:00:00 2001 From: Parbez Date: Thu, 7 Jul 2022 22:01:20 +0530 Subject: [PATCH] docs: mark the maximum allowed length for string option types (#514) --- .../_interactions/_applicationCommands/_chatInput/string.ts | 4 ++-- .../_interactions/_applicationCommands/_chatInput/string.ts | 4 ++-- .../_interactions/_applicationCommands/_chatInput/string.ts | 4 ++-- .../_interactions/_applicationCommands/_chatInput/string.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts b/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts index 0d64d28c..48b443c8 100644 --- a/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts +++ b/deno/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts @@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } interface APIApplicationCommandStringOptionBase extends APIApplicationCommandOptionBase { /** - * For option type `STRING`, the minimum allowed length (minimum of 0). + * For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`). */ min_length?: number; /** - * For option type `STRING`, the maximum allowed length (minimum of 1). + * For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`). */ max_length?: number; } diff --git a/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts b/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts index 0d64d28c..48b443c8 100644 --- a/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts +++ b/deno/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts @@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } interface APIApplicationCommandStringOptionBase extends APIApplicationCommandOptionBase { /** - * For option type `STRING`, the minimum allowed length (minimum of 0). + * For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`). */ min_length?: number; /** - * For option type `STRING`, the maximum allowed length (minimum of 1). + * For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`). */ max_length?: number; } diff --git a/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts b/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts index 5dc0e3cf..a789aced 100644 --- a/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts +++ b/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts @@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } interface APIApplicationCommandStringOptionBase extends APIApplicationCommandOptionBase { /** - * For option type `STRING`, the minimum allowed length (minimum of 0). + * For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`). */ min_length?: number; /** - * For option type `STRING`, the maximum allowed length (minimum of 1). + * For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`). */ max_length?: number; } diff --git a/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts b/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts index 5dc0e3cf..a789aced 100644 --- a/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts +++ b/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts @@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType } interface APIApplicationCommandStringOptionBase extends APIApplicationCommandOptionBase { /** - * For option type `STRING`, the minimum allowed length (minimum of 0). + * For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`). */ min_length?: number; /** - * For option type `STRING`, the maximum allowed length (minimum of 1). + * For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`). */ max_length?: number; }