From b8fdce83d96da4edb0bd7b6b5aa5528620e6bde8 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 6 Jul 2020 03:20:18 -0400 Subject: [PATCH] fixes to rank cmd --- src/commands/rank.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/rank.ts b/src/commands/rank.ts index 5717ca7..7245095 100644 --- a/src/commands/rank.ts +++ b/src/commands/rank.ts @@ -36,7 +36,7 @@ export default class Rank extends Command { embed.setTimestamp(); return message.channel.createMessage({ embed }); } - const role = this.client.util.resolveRole(args[0], this.client.guilds.get(this.client.config.guildID)); + const role = this.client.util.resolveRole(args.join(' '), this.client.guilds.get(this.client.config.guildID)); if (!role) return this.error(message.channel, 'The role you specified doesn\'t exist.'); const entry = await this.client.db.Rank.findOne({ roleID: role.id }).lean().exec(); if (!entry) return this.error(message.channel, 'The rank you specified doesn\'t exist.');