Preview environment

class SeparatorBuilder

external
declare class SeparatorBuilder extends ComponentBuilder<APISeparatorComponent>

Constructors

constructor()

Creates a new separator from API data.

readonlyexternal
data : Partial<APISeparatorComponent>

The API data associated with this component.

Inherited from: ComponentBuilder

external
clearId() : this

Clears the id of this component, defaulting to a default incremented id.

Inherited from: ComponentBuilder

external
clearSpacing() : this

Clears the spacing of this separator.

external
setDivider(
divider?: boolean
) : this

Sets whether this separator should show a divider line.

external
setId(
id: number
) : this

Sets the id (not the custom id) for this component.

Inherited from: ComponentBuilder

external
setSpacing() : this

Sets the spacing of this separator.

external
toJSON() : APISeparatorComponent

Serializes this builder to API-compatible JSON data.