fix typo in roleinfo (@dedshot)

merge-requests/12/head
Matthew 2020-04-24 23:46:43 -04:00 committed by Bsian
parent a8cb977ae1
commit 15eee459d1
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export default class Roleinfo extends Command {
public async run(message: Message, args: string[]) { public async run(message: Message, args: string[]) {
try { try {
if (!args[0]) return this.error(message.channel, 'You need to specifiy a role ID or a role name.'); if (!args[0]) return this.error(message.channel, 'You need to specify a role ID or a role name.');
let role: Role = this.client.guilds.get(this.client.config.guildID).roles.find((r: Role) => r.id === args[0]); let role: Role = this.client.guilds.get(this.client.config.guildID).roles.find((r: Role) => r.id === args[0]);
if (!role) { // if it's a role name if (!role) { // if it's a role name