Skip to content

Profile card

A profile card for a /profile command. It uses Container, Section with Thumbnail, Separator, Text Display and Action Row.

Preview
My BotAPPToday at 12:00 PM

Ana García

@ana · Member since 2021-01-01

🏆 Level 42 · 12,350 XP

Ana's avatar

📊 Stats

  • Messages: 8,214
  • Voice time: 120 h
  • Badges: 🥇 🎨 🎮

🖼️ Latest screenshots

payload.json
{
"flags": 32768,
"components": [
{
"type": 17,
"accent_color": 5793266,
"components": [
{
"type": 9,
"components": [
{
"type": 10,
"content": "# Ana García"
},
{
"type": 10,
"content": "-# @ana · Member since <t:1609459200:D>"
},
{
"type": 10,
"content": "🏆 **Level 42** · 12,350 XP"
}
],
"accessory": {
"type": 11,
"media": {
"url": "attachment://avatar.png"
},
"description": "Ana's avatar"
}
},
{
"type": 14,
"divider": true,
"spacing": 2
},
{
"type": 10,
"content": "### 📊 Stats\n- **Messages:** 8,214\n- **Voice time:** 120 h\n- **Badges:** 🥇 🎨 🎮"
},
{
"type": 14,
"divider": false,
"spacing": 1
},
{
"type": 10,
"content": "### 🖼️ Latest screenshots"
},
{
"type": 12,
"items": [
{
"media": {
"url": "attachment://mountains.png"
}
},
{
"media": {
"url": "attachment://sunset.png"
}
},
{
"media": {
"url": "attachment://forest.png"
}
}
]
},
{
"type": 1,
"components": [
{
"type": 2,
"style": 1,
"label": "Give reputation",
"custom_id": "rep:123456789012345678",
"emoji": {
"name": "⭐"
}
},
{
"type": 2,
"style": 2,
"label": "View badges",
"custom_id": "badges:123456789012345678"
}
]
}
]
}
]
}
  1. A Container with the brand color (accent_color).
  2. A Section: name and details on the left, avatar on the right.
  3. A large Separator with a line to split off the header.
  4. A Text Display with a markdown list for the stats.
  5. A Media Gallery with 3 images.
  6. An Action Row with buttons that carry the user ID in their custom_id.

Send the JSON above in payload_json together with the images as multipart/form-data.