diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/Moderation/warn.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/Moderation/warn.js b/commands/Moderation/warn.js index b5eb373..7de1ad2 100644 --- a/commands/Moderation/warn.js +++ b/commands/Moderation/warn.js @@ -24,6 +24,9 @@ exports.run = async (bot, msg, args) => { const warnReason = args.join(' '); const victim = msg.mentions.members.first(); + if (!warnReason) { + return msg.channel.send('What reason?'); + } msg.channel.send(`Successfully logged ${victim.user.tag}'s warning.`); const db = require('quick.db'); const warns = await db.fetch(`warns_${victim.user.id}_count`); |
