Skip to main content

SectionComponent

@discordeno/bot


Documentation / @discordeno/bot / SectionComponent

Interface: SectionComponent

Defined in: packages/types/dist/types/discordeno.d.ts:243

https://discord.com/developers/docs/components/reference#section-section-structure

Extends

Properties

accessory

accessory: ButtonComponent | ThumbnailComponent

Defined in: packages/types/dist/types/discordeno.d.ts:248

A thumbnail or a button component, with a future possibility of adding more compatible components


components

components: TextDisplayComponent[]

Defined in: packages/types/dist/types/discordeno.d.ts:246

One to three text components


id?

optional id: number

Defined in: packages/types/dist/types/discordeno.d.ts:65

32 bit integer used as an optional identifier for component

Inherited from

BaseComponent.id


type

type: Section

Defined in: packages/types/dist/types/discordeno.d.ts:244

The type of the component

Overrides

BaseComponent.type