More docs

This commit is contained in:
hydrabolt
2015-11-19 20:22:46 +00:00
parent 362d6b360d
commit 7deb431fdf
2 changed files with 65 additions and 3 deletions

View File

@@ -589,11 +589,11 @@ class Client extends EventEmitter {
}
//def setChannelName
setChannelName(channel, topic, callback = function (err) { }) {
setChannelName(channel, name, callback = function (err) { }) {
var self = this;
return new Promise((resolve, reject) => {
self.internal.setChannelName(channel, topic)
self.internal.setChannelName(channel, name)
.then(() => {
callback();
resolve();