class SeparatorBuilder
extends
ComponentBuilder<APISeparatorComponent>declare class SeparatorBuilder extends ComponentBuilder<APISeparatorComponent>
Constructors
data?: Partial<APISeparatorComponent>)
constructor(data?: Partial<APISeparatorComponent>
Creates a new separator from API data.
protectedreadonlyPartial<APISeparatorComponent> data :
Clears the id of this component, defaulting to a default incremented id.
Inherited from: ComponentBuilder
setDividerdivider?: boolean) : this (
divider?: boolean
Sets whether this separator should show a divider line.
setSpacingspacing: SeparatorSpacingSize) : this (
spacing: SeparatorSpacingSize
Sets the spacing of this separator.
toJSONvalidationOverride?: boolean) : APISeparatorComponent (
validationOverride?: boolean
Serializes this builder to API-compatible JSON data.Note that by disabling validation, there is no guarantee that the resulting object will be valid.