From a68528aa7ba370437c71ce45ffdbecef102fe658 Mon Sep 17 00:00:00 2001 From: shni Date: Fri, 3 Oct 2025 22:56:43 -0500 Subject: [PATCH] feat: update emoji representation in leaderboard buttons for improved compatibility --- src/commands/messages/alliaces/leaderboard.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/messages/alliaces/leaderboard.ts b/src/commands/messages/alliaces/leaderboard.ts index 42cbc31..cb107f2 100644 --- a/src/commands/messages/alliaces/leaderboard.ts +++ b/src/commands/messages/alliaces/leaderboard.ts @@ -86,7 +86,7 @@ export async function buildLeaderboardPanel(message: Message, isAdmin: boolean = { type: 1, 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 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 if (isAdmin) { 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' } ); }