mirror of
https://github.com/danbulant/discord.js
synced 2026-06-10 02:02:40 +00:00
setChannelTopic, not setTopic
This commit is contained in:
parent
70b44a6f69
commit
a89938ed01
3 changed files with 4 additions and 4 deletions
|
|
@ -349,8 +349,8 @@ export default class Client extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
// def setTopic
|
// def setTopic
|
||||||
setTopic(channel, topic, callback = (/*err*/) => {}) {
|
setChannelTopic(channel, topic, callback = (/*err*/) => {}) {
|
||||||
return this.internal.setTopic(channel, topic)
|
return this.internal.setChannelTopic(channel, topic)
|
||||||
.then(callback, errCB(callback));
|
.then(callback, errCB(callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -824,7 +824,7 @@ export default class InternalClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
//def setTopic
|
//def setTopic
|
||||||
setTopic(chann, topic = "") {
|
setChannelTopic(chann, topic = "") {
|
||||||
return this.resolver.resolveChannel(chann)
|
return this.resolver.resolveChannel(chann)
|
||||||
.then(channel =>
|
.then(channel =>
|
||||||
request
|
request
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ export default class TextChannel extends ServerChannel{
|
||||||
}
|
}
|
||||||
|
|
||||||
setTopic(){
|
setTopic(){
|
||||||
return this.client.setTopic.apply(this.client, reg(this, arguments));
|
return this.client.setChannelTopic.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
setNameAndTopic(){
|
setNameAndTopic(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue