From 14d4df5a400cd2a065386ddfbe0cfef5a365d422 Mon Sep 17 00:00:00 2001 From: Syxpi Date: Sun, 28 Sep 2025 13:00:01 +0200 Subject: [PATCH] Flemme. --- commands/dev/infra.js | 2 +- commands/dev/reload.js | 9 ++++----- commands/fun/cutie.js | 21 +++++++++++++++++++++ commands/moderation/ban.js | 2 +- commands/moderation/casier.js | 5 ++--- commands/moderation/unban.js | 2 +- 6 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 commands/fun/cutie.js diff --git a/commands/dev/infra.js b/commands/dev/infra.js index e9b5d6d..96fcfd7 100644 --- a/commands/dev/infra.js +++ b/commands/dev/infra.js @@ -60,6 +60,6 @@ module.exports = { ) .setTimestamp(); - await interaction.reply({ embeds: [embed], ephemeral: true }); + await interaction.reply({ embeds: [embed] }); } }; diff --git a/commands/dev/reload.js b/commands/dev/reload.js index fa01a1f..8f11931 100644 --- a/commands/dev/reload.js +++ b/commands/dev/reload.js @@ -11,9 +11,8 @@ module.exports = { .setDescription('The command to reload.') .setRequired(true)), async execute(interaction) { - // Vérification côté bot pour être sûr if (!interaction.member.permissions.has(PermissionFlagsBits.Administrator)) { - return interaction.reply({ content: '❌ Only administrators can use this command.', ephemeral: true }); + return interaction.reply({ content: '❌ Only administrators can use this command.', embeds: [embed] }); } @@ -21,7 +20,7 @@ module.exports = { const command = interaction.client.commands.get(commandName); if (!command) { - return interaction.reply({ content: `There is no command with name \`${commandName}\`!`, ephemeral: true }); + return interaction.reply({ content: `There is no command with name \`${commandName}\`!`, embeds: [embed] }); } delete require.cache[require.resolve(`../${command.category}/${command.data.name}.js`)]; @@ -29,10 +28,10 @@ module.exports = { try { const newCommand = require(`../${command.category}/${command.data.name}.js`); interaction.client.commands.set(newCommand.data.name, newCommand); - await interaction.reply({ content: `✅ Command \`${newCommand.data.name}\` was reloaded!`, ephemeral: true }); + await interaction.reply({ content: `✅ Command \`${newCommand.data.name}\` was reloaded!`, }); } catch (error) { console.error(error); - await interaction.reply({ content: `❌ Error while reloading \`${command.data.name}\`:\n\`${error.message}\``, ephemeral: true }); + await interaction.reply({ content: `❌ Error while reloading \`${command.data.name}\`:\n\`${error.message}\``, embeds: [embed] }); } }, }; diff --git a/commands/fun/cutie.js b/commands/fun/cutie.js new file mode 100644 index 0000000..6a07b75 --- /dev/null +++ b/commands/fun/cutie.js @@ -0,0 +1,21 @@ +const {SlashCommandBuilder, EmbedBuilder} = require("discord.js"); + +module.exports = { + category: 'fun', + data: new SlashCommandBuilder() + .setName('cutie') + .setDescription('Juste montrer qui sont les cuties de ce serveur'), + async execute(interaction) { + + const embed = new EmbedBuilder() + .setColor('#00FFFF') + .setTitle('🥰 Liste des Cuties') + .addFields( + { name: '👑 Reine des Cuties', value: `<@366171099966210049> | Tags: Tellement Cutie que j'suis jalouse 🥺`, inline: true }, + { name: '👑 Roi des Cuties', value: '<@868244823059075102> | Tags: Richou 💵 et Bg 😎', inline: true}, + { name: '👸 Princesses des Cuties', value: `<@361526553940721684> | Titre Refusé, mais ordonné (snif)`, inline: true } + + ) + await interaction.reply({ embeds: [embed] }); +}, +}; \ No newline at end of file diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index de6c276..9c92847 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -25,7 +25,7 @@ module.exports = { const reason = interaction.options.getString('reason') || 'No reason provided'; const durationInput = interaction.options.getString('duration'); - await interaction.deferReply({ ephemeral: true }); + await interaction.deferReply({ embeds: [embed] }) if (!target) return interaction.editReply({ content: 'No user specified!' }); await interaction.guild.bans.create(target.id, { reason: `Banned by ${interaction.user.tag}: ${reason}` }); diff --git a/commands/moderation/casier.js b/commands/moderation/casier.js index 8ba0622..90f5e64 100644 --- a/commands/moderation/casier.js +++ b/commands/moderation/casier.js @@ -12,7 +12,7 @@ module.exports = { .setRequired(true)), async execute(interaction) { - await interaction.deferReply({ ephemeral: true }); + await interaction.deferReply({ embeds: [embed] }); const member = interaction.options.getUser('membre'); @@ -70,8 +70,7 @@ module.exports = { // Collecteur de boutons const collector = message.createMessageComponentCollector({ time: 60_000 }); collector.on('collect', i => { - if (i.user.id !== interaction.user.id) return i.reply({ content: 'Ce n’est pas ton menu !', ephemeral: true }); - + if (i.user.id !== interaction.user.id) return i.reply({ content: 'Ce n’est pas ton menu !', embeds: [embed] }); if (i.customId === 'next') currentPage = (currentPage + 1) % embeds.length; if (i.customId === 'prev') currentPage = (currentPage - 1 + embeds.length) % embeds.length; diff --git a/commands/moderation/unban.js b/commands/moderation/unban.js index a006081..d5f0515 100644 --- a/commands/moderation/unban.js +++ b/commands/moderation/unban.js @@ -13,7 +13,7 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.BanMembers), async execute(interaction) { - await interaction.deferReply({ ephemeral: true }); + await interaction.deferReply({ embeds: [embed] }); const input = interaction.options.getString('user').trim();