Skip to content

ContainerComponent ​

classe · Source

Constructor ​

new ContainerComponent(data?: ContainerComponent | APIContainerComponent)

Parameters

NameTypeDescription
data?ContainerComponent | APIContainerComponentThe data Default: {}.

Properties ​

components ​

components: Array<ContainerComponents>

Components of the type action row, text display, section, media gallery, separator, or file Source

accentColor ​

accentColor: Number

Color for the accent on the container as RGB from 0x000000 to 0xFFFFFF Source

spoiler ​

spoiler: Boolean

Whether the container should be a spoiler (or blurred out). Defaults to false. Source

hexAccentColor ​

readonly · nullable

hexAccentColor: string

The hex accent color of this container Source

Methods ​

toJSON ​

toJSON(): APIContainerComponent
**Returns:** `APIContainerComponent` [Source](https://github.com/AltKit/discord/blob/selfbotjs/src/structures/ContainerComponent.js#L58)

Unofficial software. Not affiliated with or supported by Discord.