fix score cmd
parent
53802623de
commit
fb8069c351
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue