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