discord-interactions.py

create_separator

Function

Separator (type 14): divider line and vertical spacing.

from discord_interactions import create_separator

Signature

def create_separator(    divider: bool = True,    spacing: int | str = 1,    component_id: int | None = None,) -> Dict[str, Any]

Parameters

NameTypeDefaultDescription
dividerboolTrueDraw a line; False leaves plain space.
spacingint | str1"small" / 1 or "large" / 2.
component_idint | NoneNone

Returns

Dict[str, Any]

Type a name: create_button, ModalBuilder, cooldown.