commandDispatcher: fix file uploading

This commit is contained in:
Cynthia Foxwell 2021-05-27 16:44:31 -06:00
parent 0de8b61ddb
commit 97206cb213

View file

@ -83,6 +83,11 @@ async function CommandDispatcher(msg) {
const response = await runCommand(msg, cmd, line, args);
if (response != null) {
let file;
if (response.file) {
file = response.file;
delete response.file;
}
msg.channel
.createMessage(
Object.assign(
@ -96,7 +101,7 @@ async function CommandDispatcher(msg) {
},
}
),
response.file
file
)
.catch((e) => {
msg.channel.createMessage({