discord-interactions.py

section

Fonction

Raccourci de SectionBuilder avec ses textes.

from discord_interactions import section

Signature

def section(*texts: Any) -> SectionBuilder

Paramètres

NomTypeDéfautDescription
*textsAny

Retour

SectionBuilder

Exemple

from discord_interactions import create_button, section ligne = section("**Notifications**", "Reçois un message à chaque annonce.").button(    create_button("notif", "Activer", style="secondary"))

Tape un nom : create_button, ModalBuilder, cooldown.