fix travis bugs and mentions

This commit is contained in:
Amish Shah
2015-12-23 22:36:22 +00:00
parent 7d9b8a9b5b
commit 2253560631
2 changed files with 2 additions and 15 deletions

View File

@@ -494,14 +494,9 @@ var InternalClient = (function () {
return this.resolver.resolveChannel(where).then(function (destination) {
//var destination;
var content = _this10.resolver.resolveString(_content);
var resolved = _this10.resolver.resolveMentions(content);
var mentions = resolved[0],
content = resolved[1];
return _this10.apiRequest("post", _Constants.Endpoints.CHANNEL_MESSAGES(destination.id), true, {
content: content,
mentions: mentions,
tts: options.tts
}).then(function (res) {
return destination.messages.add(new _StructuresMessage2["default"](res, destination, _this10.client));
@@ -543,12 +538,10 @@ var InternalClient = (function () {
}
var content = this.resolver.resolveString(_content);
var mentions = this.resolver.resolveMentions(content);
return this.apiRequest("patch", _Constants.Endpoints.CHANNEL_MESSAGE(message.channel.id, message.id), true, {
content: content,
tts: options.tts,
mentions: mentions
tts: options.tts
}).then(function (res) {
return message.channel.messages.update(message, new _StructuresMessage2["default"](res, message.channel, _this12.client));
});