create_signed_button
Function
Button with a signed custom_id.
from discord_interactions import create_signed_buttonSignature
def create_signed_button( base_id: str, secret: str, data: Dict[str, Any] | None = None, ttl_seconds: int | None = None, label: str = '', style: int | str = 'Primary', emoji: str | Dict[str, Any] | None = None, disabled: bool = False, max_custom_id_length: int = 100,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
base_id | str | required | |
secret | str | required | |
data | Dict[str, Any] | None | None | |
ttl_seconds | int | None | None | |
label | str | '' | |
style | int | str | 'Primary' | |
emoji | str | Dict[str, Any] | None | None | |
disabled | bool | False | |
max_custom_id_length | int | 100 |
Returns
Dict[str, Any]