mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Finish renaming setChannelTopic
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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 =>
|
||||
|
||||
Reference in New Issue
Block a user