create_thumbnail
Fonction
Miniature (type 11), à placer comme accessoire d'une 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]Paramètres
| Nom | Type | Défaut | Description |
|---|---|---|---|
url | str | Dict[str, Any] | requis | URL d'image, attachment://fichier.png ou dict media. |
description | str | None | None | Texte alternatif (1024 caractères max). |
spoiler | bool | False | Image floutée jusqu'au clic. |
component_id | int | None | None |
Retour
Dict[str, Any]