mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Destructuring is Nice
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const commando = require('discord.js-commando');
|
||||
const Discord = require('discord.js');
|
||||
const { Command } = require('discord.js-commando');
|
||||
const { RichEmbed } = require('discord.js');
|
||||
|
||||
module.exports = class BanCommand extends commando.Command {
|
||||
module.exports = class BanCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ban',
|
||||
@@ -47,7 +47,7 @@ module.exports = class BanCommand extends commando.Command {
|
||||
try {
|
||||
const banUser = await message.guild.member(member).ban();
|
||||
const okHandMsg = await message.say(':ok_hand:');
|
||||
const embed = new Discord.RichEmbed()
|
||||
const embed = new RichEmbed()
|
||||
.setAuthor(`${message.author.username}#${message.author.discriminator}`, message.author.avatarURL)
|
||||
.setColor(0xFF0000)
|
||||
.setFooter('XiaoBot Moderation', this.client.user.avatarURL)
|
||||
|
||||
Reference in New Issue
Block a user