commandDispatcher: fix file uploading
This commit is contained in:
parent
0de8b61ddb
commit
97206cb213
1 changed files with 6 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue