fix bug
parent
925bec12ac
commit
424d01e345
|
@ -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.');
|
||||
|
|
Loading…
Reference in New Issue