From b6d495b2c9a7b7275ed0c81cdb3ae8b4795ac5fc Mon Sep 17 00:00:00 2001 From: *x1 Date: Tue, 28 May 2024 20:10:34 +0200 Subject: [PATCH 1/2] Update affichage --- commands/casino/me.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/casino/me.js b/commands/casino/me.js index 0542245..caf9d48 100644 --- a/commands/casino/me.js +++ b/commands/casino/me.js @@ -25,7 +25,7 @@ module.exports = { const embed = new EmbedBuilder() .setAuthor({ name: `Détails du Compte de ${member.user.tag}`, iconURL: member.user.displayAvatarURL() }) - .setDescription(`> :moneybag: **Poche:** \`${pocket}\`\n> :bank: **Banque:** \`${bank}\`\n> :star2: **Réputation:** \`${reputation}\`\n\n> :bar_chart: **Niveau:** \`${niveau}\`\n> :thought_balloon: **xp:** \`${xp}/${niveau*100}\``) + .setDescription(`> :moneybag: **Poche:** \`${pocket}\`\n> :bank: **Banque:** \`${bank}\`\n> :star2: **Réputation:** \`${reputation}\`\n\n> :bar_chart: **Niveau:** \`${niveau}\`\n> :small_orange_diamond: **Xp:** \`${xp}/${niveau*100}\``) .setColor(await embedColor(member.id, message.guild.id)) .setTimestamp() .setFooter({ text: `Demandé par ${message.author.tag}`, iconURL: message.author.displayAvatarURL() }); From aa15b7b463419c1e462723d0da4bd376b2ce6b55 Mon Sep 17 00:00:00 2001 From: *x1 Date: Tue, 28 May 2024 20:18:58 +0200 Subject: [PATCH 2/2] Uptime --- commands/bot control/uptime.js | 2 +- events/interactionCreate.js | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/bot control/uptime.js b/commands/bot control/uptime.js index 1b5f22e..7cb14fa 100644 --- a/commands/bot control/uptime.js +++ b/commands/bot control/uptime.js @@ -1,4 +1,4 @@ -const { ButtonStyle, ButtonBuilder, ActionRowBuilder } = require('discord.js'); +const { EmbedBuilder, ButtonStyle, ButtonBuilder, ActionRowBuilder } = require('discord.js'); module.exports = { aliases: ['upt'], diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 5b08b20..4b205d5 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -6,8 +6,6 @@ module.exports = { name: Events.InteractionCreate, async execute(client, interaction) { - if (!interaction.isButton()) return - if (interaction.customId === "lvl_Recomp_Rep") { const lvl = interaction.message.embeds[0].fields[0].value const serv = interaction.message.embeds[0].fields[1].value