aboutsummaryrefslogtreecommitdiff
path: root/src/hypixel.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-27 12:17:27 -0500
committermat <github@matdoes.dev>2022-03-27 12:17:27 -0500
commitb48e0ba124ce70ff18948c4998efa20fa6c3731e (patch)
tree74efcf7f751590c110394e23581fcadfd7129a2b /src/hypixel.ts
parent03537cf0cce0a19740c069c700374cafe176b3b5 (diff)
downloadskyblock-api-b48e0ba124ce70ff18948c4998efa20fa6c3731e.tar.gz
skyblock-api-b48e0ba124ce70ff18948c4998efa20fa6c3731e.tar.bz2
skyblock-api-b48e0ba124ce70ff18948c4998efa20fa6c3731e.zip
fix and bump typed-hypixel-api version
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r--src/hypixel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index eede92b..4afac53 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -68,7 +68,7 @@ async function cleanResponse<P extends keyof typeof cleanResponseFunctions>(
// Cleans up an api response
const cleaningFunction: typeof cleanResponseFunctions[P] = cleanResponseFunctions[path]
// we do `as any` because typescript unfortunately doesn't know which path it is
- const cleanedData = await cleaningFunction(data as any, options)
+ const cleanedData = await cleaningFunction(data.data as any, options)
return cleanedData as Awaited<ReturnType<typeof cleanResponseFunctions[P]>>
}