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.');