Compare commits

...

2 Commits

Author SHA1 Message Date
Cynthia Foxwell 2dd510030d fedimbed: deleteReaction -> removeReaction 2023-01-25 12:30:16 -07:00
Cynthia Foxwell 8e4e58016f remap files to attachments 2023-01-25 12:29:55 -07:00
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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) {