Preview environment

class SeparatorBuilder

export declare class SeparatorBuilder extends ComponentBuilder<APISeparatorComponent>

Constructors

constructor()

Creates a new separator from API data.

The API data associated with this component.

Inherited from: ComponentBuilder

clearId() : this

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

Inherited from: ComponentBuilder

clearSpacing() : this

Clears the spacing of this separator.

setDivider(
divider?: boolean
) : this

Sets whether this separator should show a divider line.

setId(
id: number
) : this

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

Inherited from: ComponentBuilder

setSpacing() : this

Sets the spacing of this separator.

Serializes this builder to API-compatible JSON data.