diff --git a/src/commands/score.ts b/src/commands/score.ts index 90855c8..8904ce8 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -141,7 +141,7 @@ export default class Score extends Command { embed.addField('Misc', miscScore || 'N/C', true); let judgementsStr: string = ''; const judgements = await this.client.db.Judgement.find({ userID: user.id }).lean().exec(); - if (judgements) { + if (judgements?.length > 0) { for (const judgement of judgements) { let severity: string; switch (judgement.severity) {