ContainerComponent
classe · Source
Constructor
new ContainerComponent(data?: ContainerComponent | APIContainerComponent)
Parameters
| Name | Type | Description |
|---|---|---|
data? | ContainerComponent | APIContainerComponent | The 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
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)