return help on kick if no args specified

merge-requests/12/head
Matthew 2020-05-03 14:59:27 -04:00 committed by Bsian
parent 63b77fdf5b
commit 6d0a1fa357
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ export default class Kick extends Command {
public async run(message: Message, args: string[]) {
try {
if (!args[0]) return this.client.commands.get('help').run(message, [this.name]);
const member = this.client.util.resolveMember(args[0], this.client.guilds.get(this.client.config.guildID));
let user: User;
if (!member) {