From 357be72c149364b95c5fe833fa891c32cbf401dd Mon Sep 17 00:00:00 2001 From: Ninjdai1 Date: Mon, 2 Oct 2023 18:52:26 +0200 Subject: [PATCH] pain --- commands/misc/graphismecommands/palette.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/misc/graphismecommands/palette.mjs b/commands/misc/graphismecommands/palette.mjs index ccdfac4..c4ece4e 100644 --- a/commands/misc/graphismecommands/palette.mjs +++ b/commands/misc/graphismecommands/palette.mjs @@ -5,7 +5,7 @@ export default { async execute(interaction){ await interaction.deferReply(); - palette = await generateRandomPalette(); + const palette = await generateRandomPalette(); const imageBuffer = await createPaletteImage(palette); @@ -22,7 +22,7 @@ async function generateRandomPalette() { // Générateur de couleurs harmonieuses (complémentaires) - baseColor = Math.floor(Math.random() * 16777215); // Couleur de base aléatoire + const baseColor = Math.floor(Math.random() * 16777215); // Couleur de base aléatoire for (let i = 0; i < numColors; i++) { // Random variations in saturation and brightness