Skip to content

Thumbnail

type: 11 Messages

The Thumbnail is a small image shown on the right of a Section. Great for avatars, logos or product icons.

Preview
My BotAPPToday at 12:00 PM

Mystery bag

Contains random items for your character.

Price: 250 🪙

Orange shop bag
payload.json
{
"flags": 32768,
"components": [
{
"type": 17,
"accent_color": 16705372,
"components": [
{
"type": 9,
"components": [
{
"type": 10,
"content": "### Mystery bag\nContains random items for your character.\n**Price:** 250 🪙"
}
],
"accessory": {
"type": 11,
"media": {
"url": "attachment://product.png"
},
"description": "Orange shop bag"
}
}
]
}
]
}
Field Type Description
type integer required Always 11.
id integer optional Unique identifier.
media unfurled media item required The image: { "url": "..." }. Accepts https:// or attachment://name URLs.
description string optional Alt text (accessibility). Max 1024 characters.
spoiler boolean optional Hide as a spoiler. Defaults to false.
{
"type": 11,
"media": { "url": "https://cdn.discordapp.com/embed/avatars/0.png" },
"description": "Discord default avatar"
}

A very common case is showing someone’s avatar. Use the Discord CDN URL:

https://cdn.discordapp.com/avatars/{user_id}/{avatar_hash}.png

Libraries give you this URL directly: user.displayAvatarURL() in discord.js, user.display_avatar.url in discord.py and user.AvatarURL("256") in discordgo.