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/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() }); 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