mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-11 15:55:43 +02:00
Refactor leaderboard update logic for better performance and consistency
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user