diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index ae22dc3..cf54670 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1,5 +1,5 @@ -const {MessageFlags, ApplicationCommandOptionTypes} = - require("@projectdysnomia/dysnomia").Constants; +const Dysnomia = require("@projectdysnomia/dysnomia"); +const {MessageFlags, ApplicationCommandOptionTypes} = Dysnomia.Constants; const fs = require("node:fs"); const path = require("node:path"); const httpSignature = require("@peertube/http-signature"); @@ -809,7 +809,7 @@ async function processUrl(msg, url, spoiler = false) { let sendWait = false; if (videos.length > 0 || audios.length > 0 || images.length > 4) { sendWait = true; - if (msg) await msg.addReaction("\uD83D\uDCE4"); + if (msg instanceof Dysnomia.Message) await msg.addReaction("\uD83D\uDCE4"); } const embeds = [];