remap files to attachments

This commit is contained in:
Cynthia Foxwell 2023-01-25 12:29:55 -07:00
parent dc954a3f60
commit 8e4e58016f

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;