add_component
Function
Inserts components into a builder or a container dict.
from discord_interactions import add_componentSignature
def add_component( container: Any, components: Any | Sequence[Any], position: int | None = None,) -> AnyParameters
| Name | Type | Default | Description |
|---|---|---|---|
container | Any | required | |
components | Any | Sequence[Any] | required | |
position | int | None | None | Insertion index; the end by default. |
Returns
Any