Ir al contenido

Tarjeta de perfil

Una tarjeta de perfil para un comando /perfil. Usa Container, Section con Thumbnail, Separator, Text Display y Action Row.

Vista previa
Mi BotAPPHoy a las 12:00

Ana García

@ana · Miembro desde 2021-01-01

🏆 Nivel 42 · 12 350 XP

Avatar de Ana

📊 Estadísticas

  • Mensajes: 8 214
  • Tiempo en voz: 120 h
  • Insignias: 🥇 🎨 🎮

🖼️ Últimas capturas

payload.json
{
"flags": 32768,
"components": [
{
"type": 17,
"accent_color": 5793266,
"components": [
{
"type": 9,
"components": [
{
"type": 10,
"content": "# Ana García"
},
{
"type": 10,
"content": "-# @ana · Miembro desde <t:1609459200:D>"
},
{
"type": 10,
"content": "🏆 **Nivel 42** · 12 350 XP"
}
],
"accessory": {
"type": 11,
"media": {
"url": "attachment://avatar.png"
},
"description": "Avatar de Ana"
}
},
{
"type": 14,
"divider": true,
"spacing": 2
},
{
"type": 10,
"content": "### 📊 Estadísticas\n- **Mensajes:** 8 214\n- **Tiempo en voz:** 120 h\n- **Insignias:** 🥇 🎨 🎮"
},
{
"type": 14,
"divider": false,
"spacing": 1
},
{
"type": 10,
"content": "### 🖼️ Últimas capturas"
},
{
"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": "Dar reputación",
"custom_id": "rep:123456789012345678",
"emoji": {
"name": "⭐"
}
},
{
"type": 2,
"style": 2,
"label": "Ver insignias",
"custom_id": "insignias:123456789012345678"
}
]
}
]
}
]
}
  1. Container con el color de la marca (accent_color).
  2. Section: el nombre y los datos a la izquierda, el avatar a la derecha.
  3. Separator grande con línea para separar la cabecera.
  4. Text Display con una lista markdown para las estadísticas.
  5. Media Gallery con 3 imágenes.
  6. Action Row con botones que llevan el ID del usuario en el custom_id.

Envía el JSON de arriba en payload_json junto con las imágenes como multipart/form-data.