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} = const Dysnomia = require("@projectdysnomia/dysnomia");
require("@projectdysnomia/dysnomia").Constants; const {MessageFlags, ApplicationCommandOptionTypes} = Dysnomia.Constants;
const fs = require("node:fs"); const fs = require("node:fs");
const path = require("node:path"); const path = require("node:path");
const httpSignature = require("@peertube/http-signature"); const httpSignature = require("@peertube/http-signature");
@ -809,7 +809,7 @@ async function processUrl(msg, url, spoiler = false) {
let sendWait = false; let sendWait = false;
if (videos.length > 0 || audios.length > 0 || images.length > 4) { if (videos.length > 0 || audios.length > 0 || images.length > 4) {
sendWait = true; sendWait = true;
if (msg) await msg.addReaction("\uD83D\uDCE4"); if (msg instanceof Dysnomia.Message) await msg.addReaction("\uD83D\uDCE4");
} }
const embeds = []; const embeds = [];