create_auto_rows
Function
Places buttons and select menus into valid rows automatically.
from discord_interactions import create_auto_rowsSignature
def create_auto_rows( components: Sequence[Dict[str, Any]], max_buttons_per_row: int = 5,) -> List[Dict[str, Any]]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
components | Sequence[Dict[str, Any]] | required | |
max_buttons_per_row | int | 5 | Buttons per row (5 max). |
Returns
List[Dict[str, Any]]