Preview environment

class ContainerComponent

export class ContainerComponent extends Component<APIContainerComponent>

Represents a container component

readonly
accentColor : number

The accent color of this container

readonly
components : ComponentInContainer[]

The components in this container

The API data associated with this component

Inherited from: Component

readonly
hexAccentColor : HexColorString

The hex accent color of this container

readonly
id : APIContainerComponent['id']

The id of this component

Inherited from: Component

readonly
spoiler : boolean

Whether this container is spoilered

readonly
type : APIContainerComponent['type']

The type of the component

Inherited from: Component

equals(
other: this | APIContainerComponent
) : boolean

Whether or not the given components are equal

Inherited from: Component

Returns the API-compatible JSON for this component