class SectionComponent
extends
Component<APISectionComponent>export class SectionComponent<AccessoryType extends ButtonComponent | ThumbnailComponent = ButtonComponent | ThumbnailComponent,> extends Component<APISectionComponent>Represents a section component
Type Parameters
optionalAccessoryType? extends ButtonComponent | ThumbnailComponent = ButtonComponent | ThumbnailComponent
readonlyaccessory : AccessoryType
The accessory component of this section
readonlycomponents : TextDisplayComponent[]
The components in this section
readonlydata : Readonly<APISectionComponent>
The API data associated with this component
Inherited from: Component
equals(other: this | APISectionComponent) : boolean
other: this | APISectionComponent
Whether or not the given components are equal
Inherited from: Component
toJSON() : APISectionComponent
Returns the API-compatible JSON for this component