From 12855f99e90c65d2e037e62bdc80725298105d84 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Wed, 10 Aug 2022 00:40:07 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B5=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0?= =?UTF-8?q?=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/mee6-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/mee6-api.js b/helpers/mee6-api.js index 2342d10d..ee522a6a 100644 --- a/helpers/mee6-api.js +++ b/helpers/mee6-api.js @@ -5,7 +5,7 @@ const fetch = require("node-fetch"); const fetchMee6 = async args => { const response = await fetch(`https://mee6.xyz/api/plugins/levels/leaderboard/${args}`).then(res => res.json()); - if (response.statusCode !== 200) { + if (response.statusCode) { if (response.error && response.error.message) throw new Error(`${response.statusCode}: ${response.error.message}`); else throw new Error(`${response.statusCode}: ${response.statusMessage}`); }