Skip to content

SectionComponent

classe · Source

Constructor

new SectionComponent(data?: SectionComponent | APISectionComponent)

Parameters

NameTypeDescription
data?SectionComponent | APISectionComponentThe data Default: {}.

Properties

components

components: Array<TextDisplayComponent>

One to three text components Source

accessory

accessory: ThumbnailComponent | MessageButton

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

Methods

toJSON

toJSON(): APISectionComponent
**Returns:** `APISectionComponent` [Source](https://github.com/AltKit/discord/blob/selfbotjs/src/structures/SectionComponent.js#L39)

Unofficial software. Not affiliated with or supported by Discord.