From 424d01e3452719d688600d4268ee7d44dc0f2a28 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 14 Sep 2020 11:27:05 -0400 Subject: [PATCH] fix bug --- src/commands/score.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/score.ts b/src/commands/score.ts index 3a94ac6..10bbf0e 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -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.');