create_thumbnail
Function
Thumbnail (type 11), used as the accessory of a section.
from discord_interactions import create_thumbnailSignature
def create_thumbnail( url: str | Dict[str, Any], description: str | None = None, spoiler: bool = False, component_id: int | None = None,) -> Dict[str, Any]Parameters
| Name | Type | Default | Description |
|---|---|---|---|
url | str | Dict[str, Any] | required | Image URL, attachment://file.png or media dict. |
description | str | None | None | Alt text (1024 characters max). |
spoiler | bool | False | Blurred until clicked. |
component_id | int | None | None |
Returns
Dict[str, Any]