Skip to content

SeparatorComponent

classe · Source

Constructor

new SeparatorComponent(data?: SeparatorComponent | APISeparatorComponent)

Parameters

NameTypeDescription
data?SeparatorComponent | APISeparatorComponentThe data Default: {}.

Properties

spacing

spacing: SeparatorSpacingSizes

Size of separator padding — SeparatorSpacingSizes.SMALL for small padding, SeparatorSpacingSizes.LARGE for large padding. Defaults to SeparatorSpacingSizes.SMALL Source

divider

divider: Boolean

Whether a visual divider should be displayed in the component. Defaults to true Source

Methods

toJSON

toJSON(): APISeparatorComponent
**Returns:** `APISeparatorComponent` [Source](https://github.com/AltKit/discord/blob/selfbotjs/src/structures/SeparatorComponent.js#L39)

Unofficial software. Not affiliated with or supported by Discord.