commandDispatcher: add support for sending a reaction instead of a message
This commit is contained in:
parent
97206cb213
commit
b176fe8184
1 changed files with 23 additions and 19 deletions
|
@ -88,6 +88,9 @@ async function CommandDispatcher(msg) {
|
||||||
file = response.file;
|
file = response.file;
|
||||||
delete response.file;
|
delete response.file;
|
||||||
}
|
}
|
||||||
|
if (response.reaction) {
|
||||||
|
msg.addReaction(response.reaction);
|
||||||
|
} else {
|
||||||
msg.channel
|
msg.channel
|
||||||
.createMessage(
|
.createMessage(
|
||||||
Object.assign(
|
Object.assign(
|
||||||
|
@ -115,6 +118,7 @@ async function CommandDispatcher(msg) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
msg.hasRan = true;
|
msg.hasRan = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue