quick_container
Function
Complete container in one call: title, lines, thumbnail, section button or row of buttons.
from discord_interactions import quick_containerSignature
def quick_container( *, title: str | None = None, lines: Iterable[str] | None = None, color: int | None = 5793266, button: Dict[str, Any] | None = None, button_text: str = 'Action', buttons: Sequence[Dict[str, Any]] | None = None, separator_between_lines: bool = False, thumbnail: str | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
title | str | None | None | Title shown as ##. |
lines | Iterable[str] | None | None | Text blocks. |
color | int | None | 5793266 | Border color. |
button | Dict[str, Any] | None | None | Accessory button of a section. |
button_text | str | 'Action' | Text of the button's section. |
buttons | Sequence[Dict[str, Any]] | None | None | Row of buttons at the bottom. |
separator_between_lines | bool | False | Separator between each line. |
thumbnail | str | None | None | Thumbnail next to the title. |
Returns
Dict[str, Any]
Example
from discord_interactions import quick_button, quick_container carte = quick_container( title="Statut", lines=["**API** opérationnelle", "**Base** opérationnelle"], buttons=[quick_button("rafraichir", "Rafraîchir")],)