From 120fcbd71a418b47d527f6f61df26b04f60caec6 Mon Sep 17 00:00:00 2001 From: Ninjdai <65647523+Ninjdai1@users.noreply.github.com> Date: Wed, 14 Dec 2022 11:39:32 +0100 Subject: [PATCH] Update embedBuilderContextMenu.js Removed useless let instead of const for variable declarations --- commands/setup/embedBuilderContextMenu.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/setup/embedBuilderContextMenu.js b/commands/setup/embedBuilderContextMenu.js index dc73757..bf16a9e 100644 --- a/commands/setup/embedBuilderContextMenu.js +++ b/commands/setup/embedBuilderContextMenu.js @@ -13,11 +13,11 @@ module.exports= { } } -let baseembed = new EmbedBuilder() +const baseembed = new EmbedBuilder() .setTitle("Constructeur d'embed") .setDescription("Bienvenue sur le constructeur interactif d'embed !\nChoisissez vos options (seule la description et le titre sont requis).\nUn fois fini, munissez-vous de l'id du salon dans lequel vous souhaitez envoyer le message et cliquez sur \"Envoyer\""); -let row1 = new ActionRowBuilder() +const row1 = new ActionRowBuilder() .addComponents([ new ButtonBuilder() .setCustomId("embedbuilder_create-author") @@ -40,7 +40,7 @@ let row1 = new ActionRowBuilder() .setLabel("Couleur de l'embed") .setStyle(ButtonStyle.Secondary) ]); -let row2 = new ActionRowBuilder() +const row2 = new ActionRowBuilder() .addComponents([ new ButtonBuilder() .setCustomId("embedbuilder_create-thumbnail") @@ -55,7 +55,7 @@ let row2 = new ActionRowBuilder() .setStyle(ButtonStyle.Secondary) .setLabel("Ajouter un message à l'embed") ]); -let row3 = new ActionRowBuilder() +const row3 = new ActionRowBuilder() .addComponents([ new ButtonBuilder() .setCustomId("embedbuilder_create-post") @@ -74,4 +74,4 @@ let row3 = new ActionRowBuilder() .setStyle(ButtonStyle.Danger) .setLabel("Envoyer dans forum") ]); -let embedbuilderrows = [row1, row2, row3]; \ No newline at end of file +const embedbuilderrows = [row1, row2, row3];