setChannelTopic, not setTopic

This commit is contained in:
abalabahaha
2015-12-05 10:04:00 -08:00
parent 70b44a6f69
commit a89938ed01
3 changed files with 4 additions and 4 deletions

View File

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