Add resolve content back into send (#1516)

so arrays are joined again, instead of sent as one new message per element
This commit is contained in:
bdistin
2017-05-21 18:02:08 -05:00
committed by Crawl
parent 694f8278f1
commit 75eb0bae58

View File

@@ -12,6 +12,7 @@ module.exports = function sendMessage(channel, options) {
}
if (content) {
content = channel.client.resolver.resolveString(content);
if (split && typeof split !== 'object') split = {};
// Wrap everything in a code block
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {