remove_component
Coroutinemust be awaited
Removes the matching components; rows left empty disappear too.
from discord_interactions import remove_componentSignature
async def remove_component( message: Any, selector: str | Callable[[Dict[str, Any]], bool], remove_empty_rows: bool = True,) -> boolParameters
| Name | Type | Default | Description |
|---|---|---|---|
message | Any | required | |
selector | str | Callable[[Dict[str, Any]], bool] | required | |
remove_empty_rows | bool | True | Remove a row that became empty. |
Returns
bool