mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Finish renaming setChannelTopic
This commit is contained in:
@@ -324,7 +324,7 @@ setStatusOnline()
|
||||
|
||||
Sets the status of the Client to Online
|
||||
|
||||
setTopic(channel, topic, `callback`)
|
||||
setChannelTopic(channel, topic, `callback`)
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Sets the topic of a channel
|
||||
|
||||
@@ -450,7 +450,7 @@ var Client = (function (_EventEmitter) {
|
||||
return this.internal.sendTyping(channel).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def setTopic
|
||||
// def setChannelTopic
|
||||
|
||||
Client.prototype.setChannelTopic = function setChannelTopic(channel, topic) {
|
||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
|
||||
|
||||
@@ -1088,7 +1088,7 @@ var InternalClient = (function () {
|
||||
return this.updateDetails({ username: username });
|
||||
};
|
||||
|
||||
//def setTopic
|
||||
//def setChannelTopic
|
||||
|
||||
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
|
||||
var _this26 = this;
|
||||
|
||||
@@ -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