discord-interactions.py

create_auto_rows

Fonction

Range automatiquement boutons et menus dans des rangées valides.

from discord_interactions import create_auto_rows

Signature

def create_auto_rows(    components: Sequence[Dict[str, Any]],    max_buttons_per_row: int = 5,) -> List[Dict[str, Any]]

Paramètres

NomTypeDéfautDescription
componentsSequence[Dict[str, Any]]requis
max_buttons_per_rowint5Boutons par rangée (5 max).

Retour

List[Dict[str, Any]]

Tape un nom : create_button, ModalBuilder, cooldown.