From cbf2aa879b716f32ca204cfdd8815630649f6698 Mon Sep 17 00:00:00 2001 From: arthur Date: Tue, 28 May 2024 21:33:16 +0200 Subject: [PATCH] Refactor leaderboard update logic for better performance and consistency --- commands/casino/top.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/casino/top.js b/commands/casino/top.js index ab6d16c..77252eb 100644 --- a/commands/casino/top.js +++ b/commands/casino/top.js @@ -156,8 +156,8 @@ module.exports = { await interaction.deferUpdate(); const embed = await leaderboard(selected); - replyMessage.edit({ embeds: embed }); - interaction.followup({ content: 'Leaderboard mis à jour', ephemeral: true }); + replyMessage.edit({ embeds: [embed] }); + interaction.followUp({ content: 'Leaderboard mis à jour', ephemeral: true }); } }); },