discord-interactions.py

Choice

Classe

Choix fixe d'une option.

from discord_interactions import Choice

Constructeur

Choice(name: str, value: Any, name_localizations: Dict[str, str] | None = None)
NomTypeDéfautDescription
namestrrequis
valueAnyrequis
name_localizationsDict[str, str] | NoneNone

Propriétés

NomTypeDescription
namestr
valueAny
name_localizationsDict[str, str] | None

Méthodes

to_dict

def to_dict() -> Dict[str, Any]

Tape un nom : create_button, ModalBuilder, cooldown.