Separator
Implementation of Discord’s Separator component as a Luau builder.
https://discord.com/developers/docs/components/reference#separator
Summary
Properties
Section titled “Properties”divider
Section titled “divider”Whether to render a visible divider line. Defaults to true.
spacing
Section titled “spacing”Spacing size: 1 for small, 2 for large.
Methods
Section titled “Methods”setDivider
Section titled “setDivider”Separator : setDivider ( divider ) -> Separator
Sets whether a visible divider line is rendered.
Parameters
| divider: boolean |
Returns
| Separator |
setSpacing
Section titled “setSpacing”Separator : setSpacing ( spacing ) -> Separator
Sets the spacing size. 1 for small, 2 for large.
Parameters
| spacing: number |
Returns
| Separator |
Separator : build ( ) -> JSON
Responsible for building the Separator JSON that can be parsed by the Discord API.
Returns
| JSON |
Functions
Section titled “Functions”Separator . new ( resource ) -> Separator
Responsible for creating a new Separator.