mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 20:32:50 +02:00
Type fixes
This commit is contained in:
parent
555d7cb126
commit
d6dc5cb88f
4 changed files with 14 additions and 9 deletions
|
@ -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+)$/)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue