discord-interactions.py

create_section

Fonction

Section (type 9) : 1 à 3 textes avec un accessoire, bouton ou miniature.

from discord_interactions import create_section

Signature

def create_section(    *texts: Any,    accessory: Any,    component_id: int | None = None,) -> Dict[str, Any]

Paramètres

NomTypeDéfautDescription
*textsAny
accessoryAnyrequisBouton ou miniature affiché à droite.
component_idint | NoneNone

Retour

Dict[str, Any]

Tape un nom : create_button, ModalBuilder, cooldown.