pull/29/head
Matthew 2020-09-14 11:27:05 -04:00
parent 925bec12ac
commit 424d01e345
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export default class Score extends Command {
}
}
if (args[0] === 'lock' || args[0] === 'unlock') {
member = message.member;
if (!member) return this.error(message.channel, 'Member not found.');
const score = await this.client.db.Score.findOne({ userID: message.author.id });
if (!score) return this.error(message.channel, 'Score not calculated yet.');