From 86f123a91dd335ba371f219040bc12791c45282d Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 24 Feb 2018 13:25:22 -0500 Subject: bugfixes --- commands/ban.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/ban.js') diff --git a/commands/ban.js b/commands/ban.js index 33c9277..74d8447 100644 --- a/commands/ban.js +++ b/commands/ban.js @@ -16,8 +16,8 @@ exports.run = async (bot, msg, args) => { .setColor(0x00ae86) .setAuthor(member.user.tag, member.user.avatarURL) .setTitle(`:hammer: **${member.user.tag}**`) - .setDescription(`*${member.user.tag}}* was banned from the server by *${msg.author.tag}*.`) - .addField('Reason', reason) + .setDescription(`*${member.user.tag}* was banned from the server by *${msg.author.tag}*.`) + .addField('Reason', reason ? reason : '*none*') .addField('Moderator', msg.author.tag) .setTimestamp() .setFooter(`${msg.author.tag} banned ${member.user.tag}`, msg.author.avatarURL); -- cgit v1.2.3