Flemme.
This commit is contained in:
@@ -60,6 +60,6 @@ module.exports = {
|
|||||||
)
|
)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
await interaction.reply({ embeds: [embed], ephemeral: true });
|
await interaction.reply({ embeds: [embed] });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,9 +11,8 @@ module.exports = {
|
|||||||
.setDescription('The command to reload.')
|
.setDescription('The command to reload.')
|
||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
// Vérification côté bot pour être sûr
|
|
||||||
if (!interaction.member.permissions.has(PermissionFlagsBits.Administrator)) {
|
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);
|
const command = interaction.client.commands.get(commandName);
|
||||||
|
|
||||||
if (!command) {
|
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`)];
|
delete require.cache[require.resolve(`../${command.category}/${command.data.name}.js`)];
|
||||||
@@ -29,10 +28,10 @@ module.exports = {
|
|||||||
try {
|
try {
|
||||||
const newCommand = require(`../${command.category}/${command.data.name}.js`);
|
const newCommand = require(`../${command.category}/${command.data.name}.js`);
|
||||||
interaction.client.commands.set(newCommand.data.name, newCommand);
|
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) {
|
} catch (error) {
|
||||||
console.error(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] });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
21
commands/fun/cutie.js
Normal file
21
commands/fun/cutie.js
Normal file
@@ -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] });
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -25,7 +25,7 @@ module.exports = {
|
|||||||
const reason = interaction.options.getString('reason') || 'No reason provided';
|
const reason = interaction.options.getString('reason') || 'No reason provided';
|
||||||
const durationInput = interaction.options.getString('duration');
|
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!' });
|
if (!target) return interaction.editReply({ content: 'No user specified!' });
|
||||||
await interaction.guild.bans.create(target.id, { reason: `Banned by ${interaction.user.tag}: ${reason}` });
|
await interaction.guild.bans.create(target.id, { reason: `Banned by ${interaction.user.tag}: ${reason}` });
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = {
|
|||||||
.setRequired(true)),
|
.setRequired(true)),
|
||||||
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ embeds: [embed] });
|
||||||
|
|
||||||
const member = interaction.options.getUser('membre');
|
const member = interaction.options.getUser('membre');
|
||||||
|
|
||||||
@@ -70,8 +70,7 @@ module.exports = {
|
|||||||
// Collecteur de boutons
|
// Collecteur de boutons
|
||||||
const collector = message.createMessageComponentCollector({ time: 60_000 });
|
const collector = message.createMessageComponentCollector({ time: 60_000 });
|
||||||
collector.on('collect', i => {
|
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 === 'next') currentPage = (currentPage + 1) % embeds.length;
|
||||||
if (i.customId === 'prev') currentPage = (currentPage - 1 + embeds.length) % embeds.length;
|
if (i.customId === 'prev') currentPage = (currentPage - 1 + embeds.length) % embeds.length;
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ module.exports = {
|
|||||||
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
|
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers),
|
||||||
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ embeds: [embed] });
|
||||||
|
|
||||||
const input = interaction.options.getString('user').trim();
|
const input = interaction.options.getString('user').trim();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user