Compare commits

..

2 commits

2 changed files with 5 additions and 1 deletions

View file

@ -148,6 +148,10 @@ async function CommandDispatcher(msg) {
files.push(newFile); files.push(newFile);
response.files = files; response.files = files;
} }
if (response.files) {
response.attachments = response.files;
delete response.files;
}
if (response.embed) { if (response.embed) {
response.embeds = [...(response.embeds ?? []), response.embed]; response.embeds = [...(response.embeds ?? []), response.embed];
delete response.embed; delete response.embed;

View file

@ -540,7 +540,7 @@ async function processUrl(msg, url, spoiler = false) {
}) })
.then(() => { .then(() => {
if (sendWait) { if (sendWait) {
msg.deleteReaction("\uD83D\uDCE4"); msg.removeReaction("\uD83D\uDCE4");
} }
if ((msg.flags & MessageFlags.SUPPRESS_EMBEDS) === 0) { if ((msg.flags & MessageFlags.SUPPRESS_EMBEDS) === 0) {