From 9afd5cc3501ad7e95a77eb2de4d3ddc451022fed Mon Sep 17 00:00:00 2001 From: Fleny Date: Mon, 5 May 2025 18:48:19 +0200 Subject: [PATCH] Remove comment limit on number of component (#4189) The limit is still in place however it is 40 total, so it is a bit more complicated to explain and the discord docs are better at doing so than what we can do with JSDoc --- packages/types/src/discord/components.ts | 2 +- packages/types/src/discordeno.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/src/discord/components.ts b/packages/types/src/discord/components.ts index 2aa469bda..8a64ea359 100644 --- a/packages/types/src/discord/components.ts +++ b/packages/types/src/discord/components.ts @@ -318,7 +318,7 @@ export enum SeparatorSpacingSize { export interface DiscordContainerComponent extends DiscordBaseComponent { type: MessageComponentTypes.Container - /** Up to 10 components of the type action row, text display, section, media gallery, separator, or file */ + /** Components of the type action row, text display, section, media gallery, separator, or file */ components: Array< | DiscordActionRow | DiscordTextDisplayComponent diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index ba9e3f20f..c94fabb80 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -399,7 +399,7 @@ export interface SeparatorComponent extends BaseComponent { export interface ContainerComponent extends BaseComponent { type: MessageComponentTypes.Container - /** Up to 10 components of the type action row, text display, section, media gallery, separator, or file */ + /** Components of the type action row, text display, section, media gallery, separator, or file */ components: Array /** Color for the accent on the container as RGB from 0x000000 to 0xFFFFFF */ accentColor?: number