From 673b3ef1203a03aec713fd2cdaf90acdc43fa667 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Fri, 10 Mar 2017 06:59:40 -0500 Subject: [PATCH] Switch Moderation Commands to use Description --- commands/moderation/ban.js | 3 +-- commands/moderation/kick.js | 3 +-- commands/moderation/warn.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/commands/moderation/ban.js b/commands/moderation/ban.js index 1895c046..217e1e24 100644 --- a/commands/moderation/ban.js +++ b/commands/moderation/ban.js @@ -40,8 +40,7 @@ class BanCommand extends commando.Command { .setColor(0xFF0000) .setFooter('XiaoBot Moderation', this.client.user.avatarURL) .setTimestamp() - .addField('Information', - '**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Ban\n**Reason:** ' + reason); + .setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Ban\n**Reason:** ' + reason); message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error); } else { message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); diff --git a/commands/moderation/kick.js b/commands/moderation/kick.js index 7b69906f..f4f8dcdb 100644 --- a/commands/moderation/kick.js +++ b/commands/moderation/kick.js @@ -40,8 +40,7 @@ class KickCommand extends commando.Command { .setColor(0xFFA500) .setFooter('XiaoBot Moderation', this.client.user.avatarURL) .setTimestamp() - .addField('Information', - '**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Kick\n**Reason:** ' + reason); + .setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Kick\n**Reason:** ' + reason); message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error); } else { message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**"); diff --git a/commands/moderation/warn.js b/commands/moderation/warn.js index ad3e987e..3d048491 100644 --- a/commands/moderation/warn.js +++ b/commands/moderation/warn.js @@ -37,8 +37,7 @@ class WarnCommand extends commando.Command { .setColor(0xFFFF00) .setFooter('XiaoBot Moderation', this.client.user.avatarURL) .setTimestamp() - .addField('Information', - '**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Warn\n**Reason:** ' + reason); + .setDescription('**Member:** ' + username.username + '#' + username.discriminator + ' (' + username.id + ')\n**Action:** Warn\n**Reason:** ' + reason); message.guild.channels.find('name', 'mod_logs').sendEmbed(embed).catch(console.error); } else { message.channel.sendMessage("**Note: No log will be sent, as there is not a channel named 'mod_logs'. Please create it to use the logging feature.**");