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

@@ -417,10 +417,10 @@ var Client = (function (_EventEmitter) {
// def setTopic
Client.prototype.setTopic = function setTopic(channel, topic) {
Client.prototype.setChannelTopic = function setChannelTopic(channel, topic) {
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err*/{} : arguments[2];
return this.internal.setTopic(channel, topic).then(callback, errCB(callback));
return this.internal.setChannelTopic(channel, topic).then(callback, errCB(callback));
};
//def setChannelName
@@ -439,6 +439,14 @@ var Client = (function (_EventEmitter) {
return this.internal.setChannelNameAndTopic(channel, name, topic).then(callback, errCB(callback));
};
//def setChannelPosition
Client.prototype.setChannelPosition = function setChannelPosition(channel, position) {
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err*/{} : arguments[2];
return this.internal.setChannelPosition(channel, position).then(callback, errCB(callback));
};
//def updateChannel
Client.prototype.updateChannel = function updateChannel(channel, data) {