fedimbed: fix reaciton check for slash command

This commit is contained in:
Cynthia Foxwell 2024-05-17 15:04:53 -06:00
parent ac2516fcf8
commit 9ca190f6dd

View file

@ -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 = [];