commandDispatcher: add support for sending a reaction instead of a message

This commit is contained in:
Cynthia Foxwell 2021-05-27 16:45:56 -06:00
parent 97206cb213
commit b176fe8184

View file

@ -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;
}
}