Merge branch 'master' into origin/dev/erkinalp/self-bans

This commit is contained in:
Erkin Alp Güney authored and GitHub committed 2022-02-04 23:43:31 +03:00
commit 340c0d7899
4 files changed
+8 -1

No files matched your search

@@ -126,6 +126,13 @@ router.get("/", async (req: Request, res: Response) => {
y.proxy_url = `${endpoint == null ? "" : endpoint}${new URL(uri).pathname}`;
});
//Some clients ( discord.js ) only check if a property exists within the response,
//which causes erorrs when, say, the `application` property is `null`.
for (var curr in x) {
if (x[curr] === null)
delete x[curr];
}
return x;
})
);