feat: update emoji representation in leaderboard buttons for improved compatibility
This commit is contained in:
@@ -86,7 +86,7 @@ export async function buildLeaderboardPanel(message: Message, isAdmin: boolean =
|
|||||||
{
|
{
|
||||||
type: 1,
|
type: 1,
|
||||||
components: [
|
components: [
|
||||||
{ type: 2, style: 2, emoji: '🔄', label: 'Reintentar', custom_id: 'ld_refresh' }
|
{ type: 2, style: 2, emoji: { name: '🔄' }, label: 'Reintentar', custom_id: 'ld_refresh' }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -145,13 +145,13 @@ export async function buildLeaderboardPanel(message: Message, isAdmin: boolean =
|
|||||||
|
|
||||||
// Botón base que todos ven
|
// Botón base que todos ven
|
||||||
const buttons: any[] = [
|
const buttons: any[] = [
|
||||||
{ type: 2, style: 2, emoji: '1420539242643193896', label: 'Refrescar', custom_id: 'ld_refresh' }
|
{ type: 2, style: 2, emoji: { name: '🔄' }, label: 'Refrescar', custom_id: 'ld_refresh' }
|
||||||
];
|
];
|
||||||
|
|
||||||
// Si es admin, añadir botón de gestión
|
// Si es admin, añadir botón de gestión
|
||||||
if (isAdmin) {
|
if (isAdmin) {
|
||||||
buttons.push(
|
buttons.push(
|
||||||
{ type: 2, style: 1, emoji: '⚙️', label: 'Gestionar Puntos', custom_id: 'ld_manage_points' }
|
{ type: 2, style: 1, emoji: { name: '⚙️' }, label: 'Gestionar Puntos', custom_id: 'ld_manage_points' }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user