(wip) error checking

This commit is contained in:
Emily 2021-03-03 19:20:26 +11:00
parent 8e611e014e
commit 41cb3ec2b6

View file

@ -36,8 +36,12 @@ module.exports = class {
return;
}
if (action.toLowerCase() !== 'add' || action.toLowerCase() !== 'remove') {
return message.channel.createMessage(`${client.emojis.userError} You didn't specify a valid action. Usage: \`${this.help.usage}\``);
}
if (!user) return message.channel.createMessage(
`${client.emojis.userError} You didn't specify a user. Usage: \`${this.help.usage}\``
`${client.emojis.userError} You didn't specify a user. Usage: \`${message.prefix + this.help.usage}\``
);
let member = message.mentions[0];