diff --git a/commands/gestion/drop.js b/commands/gestion/drop.js index b03f047..ad4e2ec 100644 --- a/commands/gestion/drop.js +++ b/commands/gestion/drop.js @@ -15,9 +15,18 @@ module.exports = { .setLabel('💰') .setStyle(ButtonStyle.Primary); - const row = new ActionRowBuilder() + const row = new ActionRowBuilder() .addComponents(btn); - const sentMessage = await message.reply({ + + const sentMessage = message.channel.send(' ') + while (contage == 100) { + setTimeout(() => { + sentMessage.edit(`> Chargement : **${contage}%**`) + contage = + 1 + }, 450); + } + + await sentMessage.edit({ content: `Appuis vite sur le bouton pour gagner ${args[0]}coins`, components: [row], allowedMentions: { repliedUser: false },