Merge branch 'dev'

merge-requests/13/head
Matthew 2020-07-06 03:21:04 -04:00
commit fbb3f92eca
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export default class Rank extends Command {
embed.setTimestamp(); embed.setTimestamp();
return message.channel.createMessage({ embed }); 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.'); 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(); 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.'); if (!entry) return this.error(message.channel, 'The rank you specified doesn\'t exist.');