discord-interactions.py

create_thumbnail

Fonction

Miniature (type 11), à placer comme accessoire d'une section.

from discord_interactions import create_thumbnail

Signature

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

NomTypeDéfautDescription
urlstr | Dict[str, Any]requisURL d'image, attachment://fichier.png ou dict media.
descriptionstr | NoneNoneTexte alternatif (1024 caractères max).
spoilerboolFalseImage floutée jusqu'au clic.
component_idint | NoneNone

Retour

Dict[str, Any]

Tape un nom : create_button, ModalBuilder, cooldown.