aboutsummaryrefslogtreecommitdiff
path: root/commands/ban.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ban.js')
-rw-r--r--commands/ban.js2
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]});
};