Compiled lib

This commit is contained in:
abalabahaha
2015-12-05 11:32:33 -08:00
parent 50646503cd
commit d2147304c8
9 changed files with 166 additions and 26 deletions

View File

@@ -894,7 +894,7 @@ var InternalClient = (function () {
//def setTopic
InternalClient.prototype.setTopic = function setTopic(chann) {
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
var _this25 = this;
var topic = arguments.length <= 1 || arguments[1] === undefined ? "" : arguments[1];
@@ -948,6 +948,24 @@ var InternalClient = (function () {
});
};
//def setTopic
InternalClient.prototype.setChannelPosition = function setChannelPosition(chann) {
var _this28 = this;
var position = arguments.length <= 1 || arguments[1] === undefined ? 0 : arguments[1];
return this.resolver.resolveChannel(chann).then(function (channel) {
return _superagent2["default"].patch(_Constants.Endpoints.CHANNEL(channel.id)).set("authorization", _this28.token).send({
name: channel.name,
position: position,
topic: channel.topic
}).end().then(function (res) {
return channel.position = res.body.position;
});
});
};
//def updateChannel
InternalClient.prototype.updateChannel = function updateChannel(chann, data) {