class SectionComponent
extends
Component<APISectionComponent>export class SectionComponent<AccessoryType extends ButtonComponent | ThumbnailComponent = ButtonComponent | ThumbnailComponent,> extends Component<APISectionComponent>
Represents a section component
Type Parameters
optionalButtonComponent | ThumbnailComponent = ButtonComponent | ThumbnailComponent AccessoryType? extends
readonlyAccessoryType accessory :
The accessory component of this section
readonlyTextDisplayComponent[] components :
The components in this section
readonlyReadonly<APISectionComponent> data :
The API data associated with this component
Inherited from: Component
equalsother: this | APISectionComponent) : boolean (
other: this | APISectionComponent
Whether or not the given components are equal
Inherited from: Component
toJSONAPISectionComponent () :
Returns the API-compatible JSON for this component