1
0
Fork 0
out-of-your-element-fork-th.../matrix/api.js

20 lines
486 B
JavaScript
Raw Normal View History

2023-05-08 05:22:20 +00:00
// @ts-check
const passthrough = require("../passthrough")
const { discord, sync, db } = passthrough
/** @type {import("./mreq")} */
const mreq = sync.require("./mreq")
/** @type {import("./file")} */
const file = sync.require("./file")
/**
* @returns {Promise<import("../types").R.Registered>}
*/
function register(username) {
return mreq.mreq("POST", "/client/v3/register", {
type: "m.login.application_service",
username
})
}
module.exports.register = register