discord-interactions.py

parse_signed_custom_id

Fonction

Vérifie un custom_id signé. Renvoie (base_id, données, valide, raison).

from discord_interactions import parse_signed_custom_id

Signature

def parse_signed_custom_id(    custom_id: str,    secret: str,    enforce_expiry: bool = True,) -> Tuple[str, Dict[str, Any], bool, str]

Paramètres

NomTypeDéfautDescription
custom_idstrrequis
secretstrrequis
enforce_expiryboolTrueRefuser un custom_id expiré.

Retour

Tuple[str, Dict[str, Any], bool, str]

Tape un nom : create_button, ModalBuilder, cooldown.