fix score cmd
parent
53802623de
commit
fb8069c351
|
@ -141,7 +141,7 @@ export default class Score extends Command {
|
||||||
embed.addField('Misc', miscScore || 'N/C', true);
|
embed.addField('Misc', miscScore || 'N/C', true);
|
||||||
let judgementsStr: string = '';
|
let judgementsStr: string = '';
|
||||||
const judgements = await this.client.db.Judgement.find({ userID: user.id }).lean().exec();
|
const judgements = await this.client.db.Judgement.find({ userID: user.id }).lean().exec();
|
||||||
if (judgements) {
|
if (judgements?.length > 0) {
|
||||||
for (const judgement of judgements) {
|
for (const judgement of judgements) {
|
||||||
let severity: string;
|
let severity: string;
|
||||||
switch (judgement.severity) {
|
switch (judgement.severity) {
|
||||||
|
|
Loading…
Reference in New Issue