join arrays with new lines when sending as messages

This commit is contained in:
Amish Shah
2016-09-04 17:15:55 +01:00
parent 600541b476
commit 9f0db9d0d8
3 changed files with 3 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ class RESTMethods {
sendMessage(channel, content, tts, nonce, file) {
return new Promise((resolve, reject) => {
const $this = this;
content = this.rest.client.resolver.resolveString(content);
function req() {
$this.rest.makeRequest('post', Constants.Endpoints.channelMessages(channel.id), true, {
content, tts, nonce,