Fixed wrong parenthesis for Webhook#send and Webhook#sendSlackMessage (#1648)

This commit is contained in:
SpaceEEC
2017-07-04 00:09:07 +02:00
committed by Crawl
parent 3fa880df5b
commit 1c901cee7b

View File

@@ -165,7 +165,7 @@ class Webhook {
}).then(data => {
if (!this.client.channels) return data;
const Message = require('./Message');
return new Message(this.client.channels.get(data.channel_id, data, this.client));
return new Message(this.client.channels.get(data.channel_id), data, this.client);
});
}
@@ -194,7 +194,7 @@ class Webhook {
}).then(data => {
if (!this.client.channels) return data;
const Message = require('./Message');
return new Message(this.client.channels.get(data.channel_id, data, this.client));
return new Message(this.client.channels.get(data.channel_id), data, this.client);
});
}