class SeparatorBuilder
extends
ComponentBuilder<APISeparatorComponent>declare class SeparatorBuilder extends ComponentBuilder<APISeparatorComponent>Constructors
constructor(data?: Partial<APISeparatorComponent>)
data?: Partial<APISeparatorComponent>
Creates a new separator from API data.
readonlydata : Partial<APISeparatorComponent>
The API data associated with this component.
Inherited from: ComponentBuilder
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setDivider(divider?: boolean) : this
divider?: boolean
Sets whether this separator should show a divider line.
setId(id: number) : this
id: number
Sets the id (not the custom id) for this component.
Inherited from: ComponentBuilder
setSpacing(spacing: SeparatorSpacingSize) : this
spacing: SeparatorSpacingSize
Sets the spacing of this separator.
toJSON() : APISeparatorComponent
Serializes this builder to API-compatible JSON data.