m2d reactions (untested)
This commit is contained in:
parent
39cdba9f90
commit
61120d92c6
7 changed files with 58 additions and 11 deletions
|
@ -1,5 +1,6 @@
|
|||
// @ts-check
|
||||
|
||||
const Ty = require("../../types")
|
||||
const DiscordTypes = require("discord-api-types/v10")
|
||||
const markdown = require("discord-markdown")
|
||||
|
||||
|
@ -9,7 +10,7 @@ const { sync, db, discord } = passthrough
|
|||
const file = sync.require("../../matrix/file")
|
||||
|
||||
/**
|
||||
* @param {import("../../types").Event.Outer<import("../../types").Event.M_Room_Message>} event
|
||||
* @param {Ty.Event.Outer<Ty.Event.M_Room_Message>} event
|
||||
*/
|
||||
function eventToMessage(event) {
|
||||
/** @type {(DiscordTypes.RESTPostAPIWebhookWithTokenJSONBody & {files?: {name: string, file: Buffer}[]})[]} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue