aboutsummaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-27 22:01:17 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-08-27 22:01:17 -0400
commit7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09 (patch)
tree35bd9c8a686daafc7cbfef235afade0ef0c8a104 /lib/utils
parentb72d58843e853b0f260527a3689f76b13946bcb8 (diff)
downloadtanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.tar.gz
tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.tar.bz2
tanzanite-7fd4bd40f49b07a584b2a2c5e071b6624d9dfe09.zip
node-canvas -> @napi-rs/canvas
ts 4.7.4 -> 4.8.2
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/BushClientUtils.ts2
1 files changed, 1 insertions, 1 deletions
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}`);