diff --git a/src/lib/commandDispatcher.js b/src/lib/commandDispatcher.js index 5b69232..94eec60 100644 --- a/src/lib/commandDispatcher.js +++ b/src/lib/commandDispatcher.js @@ -148,6 +148,10 @@ async function CommandDispatcher(msg) { files.push(newFile); response.files = files; } + if (response.files) { + response.attachments = response.files; + delete response.files; + } if (response.embed) { response.embeds = [...(response.embeds ?? []), response.embed]; delete response.embed; diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index e03f660..0627a4b 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -540,7 +540,7 @@ async function processUrl(msg, url, spoiler = false) { }) .then(() => { if (sendWait) { - msg.deleteReaction("\uD83D\uDCE4"); + msg.removeReaction("\uD83D\uDCE4"); } if ((msg.flags & MessageFlags.SUPPRESS_EMBEDS) === 0) {