From 7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Sat, 27 Aug 2022 22:01:17 -0400 Subject: node-canvas -> @napi-rs/canvas ts 4.7.4 -> 4.8.2 --- lib/utils/BushClientUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils') diff --git a/lib/utils/BushClientUtils.ts b/lib/utils/BushClientUtils.ts index bc4a40a..e468cd7 100644 --- a/lib/utils/BushClientUtils.ts +++ b/lib/utils/BushClientUtils.ts @@ -71,7 +71,7 @@ export class BushClientUtils { } for (const url of this.#hasteURLs) { try { - const res: HastebinRes = await (await fetch(`${url}/documents`, { method: 'POST', body: content })).json(); + const res = (await (await fetch(`${url}/documents`, { method: 'POST', body: content })).json()) as HastebinRes; return { url: `${url}/${res.key}`, error: isSubstr ? 'substr' : undefined }; } catch { void this.client.console.error('haste', `Unable to upload haste to ${url}`); -- cgit