From 9ca190f6dd718716b23c294a32a642a68b81727e Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 17 May 2024 15:04:53 -0600 Subject: [PATCH] fedimbed: fix reaciton check for slash command --- src/modules/fedimbed.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = [];