diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/hypixelApi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/hypixelApi.js b/build/hypixelApi.js index 2377eca..f29471a 100644 --- a/build/hypixelApi.js +++ b/build/hypixelApi.js @@ -76,7 +76,7 @@ export let sendApiRequest = async function sendApiRequest({ path, key, args }) { if (fetchJsonParsed.cause === 'Invalid API key') { apiKeys.splice(apiKeys.indexOf(key), 1); console.log(`${key} is invalid, removing it from the list of keys`); - return await sendApiRequest({ path, key: null, args }); + return await sendApiRequest({ path, key: chooseApiKey(), args }); } if (fetchResponse.headers.get('ratelimit-limit')) // remember how many uses it has |