Finish renaming setChannelTopic

This commit is contained in:
abalabahaha
2016-01-04 20:37:15 -08:00
parent 2a00064646
commit 69bffc6279
5 changed files with 5 additions and 5 deletions

View File

@@ -324,7 +324,7 @@ setStatusOnline()
Sets the status of the Client to Online
setTopic(channel, topic, `callback`)
setChannelTopic(channel, topic, `callback`)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sets the topic of a channel

View File

@@ -450,7 +450,7 @@ var Client = (function (_EventEmitter) {
return this.internal.sendTyping(channel).then(dataCallback(callback), errorCallback(callback));
};
// def setTopic
// def setChannelTopic
Client.prototype.setChannelTopic = function setChannelTopic(channel, topic) {
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];

View File

@@ -1088,7 +1088,7 @@ var InternalClient = (function () {
return this.updateDetails({ username: username });
};
//def setTopic
//def setChannelTopic
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
var _this26 = this;

View File

@@ -369,7 +369,7 @@ export default class Client extends EventEmitter {
.then(dataCallback(callback), errorCallback(callback));
}
// def setTopic
// def setChannelTopic
setChannelTopic(channel, topic, callback = (/*err, {}*/) => { }) {
return this.internal.setChannelTopic(channel, topic)
.then(dataCallback(callback), errorCallback(callback));

View File

@@ -933,7 +933,7 @@ export default class InternalClient {
return this.updateDetails({username});
}
//def setTopic
//def setChannelTopic
setChannelTopic(chann, topic = "") {
return this.resolver.resolveChannel(chann)
.then(channel =>