From 490fa814c03db2080f99d03e45d6158a69ea7b0b Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 22 Apr 2024 00:51:23 +1000 Subject: [PATCH] I don't know why it's not being used so hopefully fixes it. --- src/modules/MPModule.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/MPModule.ts b/src/modules/MPModule.ts index 4ee726b..df0d595 100644 --- a/src/modules/MPModule.ts +++ b/src/modules/MPModule.ts @@ -38,7 +38,7 @@ export default async(client:TClient)=>{ return new client.embed().setColor(client.config.embedColorRed).setTitle(unavailableStatus).setFooter({text: 'Last updated'}).setTimestamp(); }; const {dss, csg} = serverData; - if (dss === null ?? csg === null ?? !dss ?? !csg ?? !dss.slots ?? !csg.slotSystem) return new client.embed().setColor(client.config.embedColorRed).setTitle(`${server.serverName} did not respond`).setFooter({text: 'Last updated'}).setTimestamp(); + if (dss === null || csg === null || !dss || !csg || !dss.slots || !csg.slotSystem) return new client.embed().setColor(client.config.embedColorRed).setTitle(`${server.serverName} sent partial response`).setFooter({text: 'Last updated'}).setTimestamp(); // Skip the server if the parts of the data is missing. const formatTimescale =(number:number, digits:number, icon:string)=>Intl.NumberFormat(undefined, {minimumFractionDigits: digits}).format(number)+icon;