diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 13:25:22 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 13:25:22 -0500 |
| commit | 86f123a91dd335ba371f219040bc12791c45282d (patch) | |
| tree | a1fbed5146b83702f367ec3aeec7822faab0cbb9 /commands/ban.js | |
| parent | f0eceb99aea5595c338fc130f14d0eff67c7c9f2 (diff) | |
| download | PokeBot-86f123a91dd335ba371f219040bc12791c45282d.tar.gz PokeBot-86f123a91dd335ba371f219040bc12791c45282d.tar.bz2 PokeBot-86f123a91dd335ba371f219040bc12791c45282d.zip | |
bugfixes
Diffstat (limited to 'commands/ban.js')
| -rw-r--r-- | commands/ban.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
