commandDispatcher: actually rename the props
This commit is contained in:
parent
8667189684
commit
0a5a95aa05
1 changed files with 5 additions and 2 deletions
|
@ -87,9 +87,12 @@ async function CommandDispatcher(msg) {
|
||||||
const response = await runCommand(msg, cmd, line, args);
|
const response = await runCommand(msg, cmd, line, args);
|
||||||
if (response != null) {
|
if (response != null) {
|
||||||
if (response.file) {
|
if (response.file) {
|
||||||
const files = response.files ?? [];
|
const newFile = response.file;
|
||||||
files.push(response.file);
|
|
||||||
delete response.file;
|
delete response.file;
|
||||||
|
newFile.contents = newFile.file;
|
||||||
|
delete newFile.file;
|
||||||
|
const files = response.files ?? [];
|
||||||
|
files.push(newFile);
|
||||||
response.files = files;
|
response.files = files;
|
||||||
}
|
}
|
||||||
if (response.embed) {
|
if (response.embed) {
|
||||||
|
|
Loading…
Reference in a new issue