SeparatorComponent
classe · Source
Constructor
new SeparatorComponent(data?: SeparatorComponent | APISeparatorComponent)
Parameters
| Name | Type | Description |
|---|---|---|
data? | SeparatorComponent | APISeparatorComponent | The 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)