discord-interactions.py

create_separator

Fonction

Séparateur (type 14) : trait et espacement vertical.

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]

Paramètres

NomTypeDéfautDescription
dividerboolTrueAfficher un trait ; False donne un simple espace.
spacingint | str1"small" / 1 ou "large" / 2.
component_idint | NoneNone

Retour

Dict[str, Any]

Tape un nom : create_button, ModalBuilder, cooldown.