parse_signed_custom_id
Function
Verifies a signed custom_id. Returns (base_id, data, valid, reason).
from discord_interactions import parse_signed_custom_idSignature
def parse_signed_custom_id( custom_id: str, secret: str, enforce_expiry: bool = True,) -> Tuple[str, Dict[str, Any], bool, str]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
custom_id | str | required | |
secret | str | required | |
enforce_expiry | bool | True | Reject an expired custom_id. |
Returns
Tuple[str, Dict[str, Any], bool, str]
Details
Raisons : ok, missing_separator, missing_signature,
bad_signature, bad_payload, expired.