Type fixes

This commit is contained in:
Cadence Ember 2024-09-14 00:58:21 +12:00
commit d6dc5cb88f
4 changed files with 14 additions and 9 deletions

View file

@ -3,7 +3,7 @@
const Ty = require("../types")
const assert = require("assert").strict
const fetch = require("node-fetch")
const fetch = require("node-fetch").default
const passthrough = require("../passthrough")
const { discord, sync, db } = passthrough
@ -315,7 +315,7 @@ async function ping() {
/**
* @param {string} mxc
* @param {RequestInit} [init]
* @param {fetch.RequestInit} [init]
*/
function getMedia(mxc, init = {}) {
const mediaParts = mxc?.match(/^mxc:\/\/([^/]+)\/(\w+)$/)