Flemme.
This commit is contained in:
@@ -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}` });
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user