create_checkbox
Function
Single yes or no checkbox. Always optional.
from discord_interactions import create_checkboxSignature
def create_checkbox( custom_id: str, default: bool = False, component_id: int | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
custom_id | str | required | |
default | bool | False | Checked by default. |
component_id | int | None | None |
Returns
Dict[str, Any]