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
This commit is contained in:
Fleny
2025-05-05 18:48:19 +02:00
committed by GitHub
parent 4b96d9fe02
commit 9afd5cc350
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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<ActionRow | TextDisplayComponent | SectionComponent | MediaGalleryComponent | SeparatorComponent | FileComponent>
/** Color for the accent on the container as RGB from 0x000000 to 0xFFFFFF */
accentColor?: number