remap files to attachments

This commit is contained in:
Cynthia Foxwell 2023-01-25 12:29:55 -07:00
parent dc954a3f60
commit 8e4e58016f
1 changed files with 4 additions and 0 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;