Skip to content

Commit d503c71

Browse files
docs: mark the maximum allowed length for string option types (#514)
1 parent e253a4a commit d503c71

File tree

4 files changed

+8
-8
lines changed
  • deno/payloads
    • v10/_interactions/_applicationCommands/_chatInput
    • v9/_interactions/_applicationCommands/_chatInput
  • payloads
    • v10/_interactions/_applicationCommands/_chatInput
    • v9/_interactions/_applicationCommands/_chatInput

4 files changed

+8
-8
lines changed

deno/payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType }
88
interface APIApplicationCommandStringOptionBase
99
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.String> {
1010
/**
11-
* For option type `STRING`, the minimum allowed length (minimum of 0).
11+
* For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`).
1212
*/
1313
min_length?: number;
1414
/**
15-
* For option type `STRING`, the maximum allowed length (minimum of 1).
15+
* For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`).
1616
*/
1717
max_length?: number;
1818
}

deno/payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType }
88
interface APIApplicationCommandStringOptionBase
99
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.String> {
1010
/**
11-
* For option type `STRING`, the minimum allowed length (minimum of 0).
11+
* For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`).
1212
*/
1313
min_length?: number;
1414
/**
15-
* For option type `STRING`, the maximum allowed length (minimum of 1).
15+
* For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`).
1616
*/
1717
max_length?: number;
1818
}

payloads/v10/_interactions/_applicationCommands/_chatInput/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType }
88
interface APIApplicationCommandStringOptionBase
99
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.String> {
1010
/**
11-
* For option type `STRING`, the minimum allowed length (minimum of 0).
11+
* For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`).
1212
*/
1313
min_length?: number;
1414
/**
15-
* For option type `STRING`, the maximum allowed length (minimum of 1).
15+
* For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`).
1616
*/
1717
max_length?: number;
1818
}

payloads/v9/_interactions/_applicationCommands/_chatInput/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import type { APIApplicationCommandOptionChoice, ApplicationCommandOptionType }
88
interface APIApplicationCommandStringOptionBase
99
extends APIApplicationCommandOptionBase<ApplicationCommandOptionType.String> {
1010
/**
11-
* For option type `STRING`, the minimum allowed length (minimum of 0).
11+
* For option type `STRING`, the minimum allowed length (minimum of `0`, maximum of `6000`).
1212
*/
1313
min_length?: number;
1414
/**
15-
* For option type `STRING`, the maximum allowed length (minimum of 1).
15+
* For option type `STRING`, the maximum allowed length (minimum of `1`, maximum of `6000`).
1616
*/
1717
max_length?: number;
1818
}

0 commit comments

Comments
 (0)