diff options
Diffstat (limited to 'lib/utils/BushClientUtils.ts')
-rw-r--r-- | lib/utils/BushClientUtils.ts | 2 |
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}`); |