diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-03-25 21:25:43 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-03-25 21:27:41 -0400 |
| commit | 1a7a627446edfeb270850f0ed15c9c8d604380b2 (patch) | |
| tree | 8435e5323ce8a81976cafe297a6c730b4f0695da /commands/ban.js | |
| parent | 85a8f11507c0fb74b67914090bdfe10c361b775e (diff) | |
| download | AleeBot-1a7a627446edfeb270850f0ed15c9c8d604380b2.tar.gz AleeBot-1a7a627446edfeb270850f0ed15c9c8d604380b2.tar.bz2 AleeBot-1a7a627446edfeb270850f0ed15c9c8d604380b2.zip | |
Now using sequelize; Minor tweaks; New activities
Diffstat (limited to 'commands/ban.js')
| -rw-r--r-- | commands/ban.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ban.js b/commands/ban.js index 1e8ee6e..b734be5 100644 --- a/commands/ban.js +++ b/commands/ban.js @@ -29,7 +29,7 @@ module.exports.run = async (client, message, args) => { .setTitle('User Banned!') .setColor('#1fd619') .addField('**User:**', `${member.user.tag}`) - .addField('**Reason:**', `\`\`\`${mreason}\`\`\``); + if (mreason) return banEmbed.addField('**Reason:**', `\`\`\`${mreason}\`\`\``); await message.channel.send({embeds: [banEmbed]}); }; |
