diff options
Diffstat (limited to 'src/hypixelApi.ts')
-rw-r--r-- | src/hypixelApi.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hypixelApi.ts b/src/hypixelApi.ts index 186cec6..3a9cf95 100644 --- a/src/hypixelApi.ts +++ b/src/hypixelApi.ts @@ -1,7 +1,7 @@ /** * Fetch the raw Hypixel API */ -import { shuffle, sleep } from './util.js' +import { shuffle, sleep } from './util.js' import typedHypixelApi from 'typed-hypixel-api' import { Agent } from 'https' @@ -107,7 +107,7 @@ export let sendApiRequest = async<P extends keyof typedHypixelApi.Requests>(path path, options ) - } catch { + } catch (e) { await sleep(1000) return await sendApiRequest(path, options) } |