remap files to attachments
This commit is contained in:
parent
dc954a3f60
commit
8e4e58016f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue