mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 22:34:46 +02:00
Fix?
This commit is contained in:
@@ -51,7 +51,10 @@ module.exports = class BanCommand extends Command {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
await message.say('Failed to send DM to user.');
|
await message.say('Failed to send DM to user.');
|
||||||
}
|
}
|
||||||
await member.ban(7);
|
await member.ban({
|
||||||
|
days: 7,
|
||||||
|
reason
|
||||||
|
});
|
||||||
await message.say(':ok_hand:');
|
await message.say(':ok_hand:');
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
.setAuthor(message.author.tag, message.author.displayAvatarURL)
|
.setAuthor(message.author.tag, message.author.displayAvatarURL)
|
||||||
|
|||||||
@@ -48,7 +48,9 @@ module.exports = class KickCommand extends Command {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
await message.say('Failed to send DM.');
|
await message.say('Failed to send DM.');
|
||||||
}
|
}
|
||||||
await member.kick();
|
await member.kick({
|
||||||
|
reason
|
||||||
|
});
|
||||||
await message.say(':ok_hand:');
|
await message.say(':ok_hand:');
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
.setAuthor(message.author.tag, message.author.displayAvatarURL)
|
.setAuthor(message.author.tag, message.author.displayAvatarURL)
|
||||||
|
|||||||
@@ -50,14 +50,17 @@ module.exports = class SoftbanCommand extends Command {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
await message.say('Failed to send DM to user.');
|
await message.say('Failed to send DM to user.');
|
||||||
}
|
}
|
||||||
await member.ban(7);
|
await member.ban({
|
||||||
|
days: 7,
|
||||||
|
reason
|
||||||
|
});
|
||||||
await message.guild.unban(member.user);
|
await message.guild.unban(member.user);
|
||||||
await message.say(':ok_hand:');
|
await message.say(':ok_hand:');
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
.setAuthor(message.author.tag, message.author.displayAvatarURL)
|
.setAuthor(message.author.tag, message.author.displayAvatarURL)
|
||||||
.setColor(0xFF4500)
|
.setColor(0xFF4500)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setDescription(`**Member:** ${member.user.tag} (${member.id})\n**Action:** Ban\n**Reason:** ${reason}`);
|
.setDescription(`**Member:** ${member.user.tag} (${member.id})\n**Action:** Softban\n**Reason:** ${reason}`);
|
||||||
return modlogs.send({embed});
|
return modlogs.send({embed});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return message.say('An Unknown Error Occurred.');
|
return message.say('An Unknown Error Occurred.');
|
||||||
|
|||||||
Reference in New Issue
Block a user