Preview environment

class SeparatorComponent

export class SeparatorComponent extends Component<APISeparatorComponent>

Represents a separator component

The API data associated with this component

Inherited from: Component

readonly
divider : boolean

Whether this separator is a divider

readonly
id : APISeparatorComponent['id']

The id of this component

Inherited from: Component

readonly
spacing : SeparatorSpacingSize

The spacing of this separator

readonly
type : APISeparatorComponent['type']

The type of the component

Inherited from: Component

equals(
other: this | APISeparatorComponent
) : boolean

Whether or not the given components are equal

Inherited from: Component

Returns the API-compatible JSON for this component

Inherited from: Component