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;
|
||||
delete response.file;
|
||||
}
|
||||
if (response.reaction) {
|
||||
msg.addReaction(response.reaction);
|
||||
} else {
|
||||
msg.channel
|
||||
.createMessage(
|
||||
Object.assign(
|
||||
|
@ -115,6 +118,7 @@ async function CommandDispatcher(msg) {
|
|||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
msg.hasRan = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue