From 75f391787c7314c41f05791e2f56114f9acfe3db Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:30:52 -0500 Subject: [PATCH] Fix typo --- lib/util/apiError.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/apiError.js b/lib/util/apiError.js index 67e7046e..91796211 100644 --- a/lib/util/apiError.js +++ b/lib/util/apiError.js @@ -22,7 +22,7 @@ class RobloxAPIError extends Error { else if (Object.hasOwn(obj, 'errors')) { // Most BEDEV1 endpoints return obj.errors.at(0) // In spite of BEDEV1 endpoint errors being nested in an array, they are never seen in groups. - } else if (Object.hasOwn(obj, 'code') && Object.hasOwn(obj, 'message')) { // V2 open cloid + } else if (Object.hasOwn(obj, 'code') && Object.hasOwn(obj, 'message')) { // V2 open cloud return obj } else return { code: 0, message: this.responseBody } // Roblox did a funny (i.e. the platform is down) }