mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
setChannelTopic, not setTopic
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -824,7 +824,7 @@ export default class InternalClient {
|
||||
}
|
||||
|
||||
//def setTopic
|
||||
setTopic(chann, topic = "") {
|
||||
setChannelTopic(chann, topic = "") {
|
||||
return this.resolver.resolveChannel(chann)
|
||||
.then(channel =>
|
||||
request
|
||||
|
||||
Reference in New Issue
Block a user