fedimbed: fix reaciton check for slash command
This commit is contained in:
parent
ac2516fcf8
commit
9ca190f6dd
1 changed files with 3 additions and 3 deletions
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in a new issue