create_component
Function
Raw component: {"type": component_type, **fields}. Handy for a type the module does not cover yet.
from discord_interactions import create_componentSignature
def create_component(component_type: int, **fields: Any) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
component_type | int | required | Discord type number (see ComponentType). |
**fields | Any |
Returns
Dict[str, Any]