Skip to main content

ContainerComponent

Documentation


Documentation / @discordeno/types / ContainerComponent

Interface: ContainerComponent

Defined in: discordeno/components.ts:409

https://docs.discord.com/developers/components/reference#container

Extends

Properties

accentColor?

optional accentColor?: number | null

Defined in: discordeno/components.ts:415

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


components

components: (ActionRow | SectionComponent | TextDisplayComponent | MediaGalleryComponent | SeparatorComponent | FileComponent)[]

Defined in: discordeno/components.ts:413

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


id?

optional id?: number

Defined in: discordeno/components.ts:42

32 bit integer used as an optional identifier for component

Inherited from

BaseComponent.id


spoiler?

optional spoiler?: boolean

Defined in: discordeno/components.ts:417

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


type

type: Container

Defined in: discordeno/components.ts:410

The type of the component

Overrides

BaseComponent.type