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) }