Merge branch 'dev'

merge-requests/17/merge
Matthew 2021-03-06 13:40:12 -05:00
commit 30c10d8984
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ export default class Profile extends Command {
super(client); super(client);
this.name = 'profile'; this.name = 'profile';
this.description = 'Manages your profile on CR.'; this.description = 'Manages your profile on CR.';
this.usage = 'profile <bio/github/gitlab> <new value>\n*Provide no value in subcommand to clear data.'; this.usage = 'profile <bio/github/gitlab> <new value>\n*Provide no value in subcommand to clear data.*';
this.permissions = 0; this.permissions = 0;
this.enabled = true; this.enabled = true;
this.subcmds = [Profile_Bio, Profile_GitHub, Profile_Gitlab]; this.subcmds = [Profile_Bio, Profile_GitHub, Profile_Gitlab];

View File

@ -56,7 +56,7 @@ export default class Whois extends Command {
if (ackResolve?.extension) { if (ackResolve?.extension) {
description += `☎️ ${ackResolve.extension}\n`; description += `☎️ ${ackResolve.extension}\n`;
} }
const memberProfile = await this.client.db.Member.findOne({ userID: message.author.id }).lean().exec(); const memberProfile = await this.client.db.Member.findOne({ userID: member.id }).lean().exec();
if (memberProfile?.additional?.gitlab) { if (memberProfile?.additional?.gitlab) {
description += `${emotes.gitlab} ${memberProfile?.additional.gitlab}\n`; description += `${emotes.gitlab} ${memberProfile?.additional.gitlab}\n`;
} }