class SeparatorBuilder

declare class SeparatorBuilder extends ComponentBuilder<APISeparatorComponent>

Constructors

constructor()

Creates a new separator from API data.

protectedreadonly
data : Partial<APISeparatorComponent>

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 of this component.

Inherited from: ComponentBuilder

setSpacing() : this

Sets the spacing of this separator.

toJSON(
validationOverride?: boolean
) : APISeparatorComponent

Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.