diff options
| author | pokesudenk <thisis@notarealema.il> | 2018-02-24 13:26:47 -0500 |
|---|---|---|
| committer | pokesudenk <thisis@notarealema.il> | 2018-02-24 13:26:47 -0500 |
| commit | c54f7c7c85af4c6f268b88033ef9bd84464e3aeb (patch) | |
| tree | 60ed992ae8550b3e90f5cfc3ecdd2996ed9d1570 /commands/ban.js | |
| parent | 6947ffa5846d132f406c14489a0072f199a0561b (diff) | |
| parent | c6c21db700ff63690ff10b050a3b99c9c034a7a4 (diff) | |
| download | PokeBot-c54f7c7c85af4c6f268b88033ef9bd84464e3aeb.tar.gz PokeBot-c54f7c7c85af4c6f268b88033ef9bd84464e3aeb.tar.bz2 PokeBot-c54f7c7c85af4c6f268b88033ef9bd84464e3aeb.zip | |
Merge branch 'master' of https://github.com/PokeWorld/PokeBot
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); |
