mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Finish renaming setChannelTopic
This commit is contained in:
@@ -324,7 +324,7 @@ setStatusOnline()
|
|||||||
|
|
||||||
Sets the status of the Client to Online
|
Sets the status of the Client to Online
|
||||||
|
|
||||||
setTopic(channel, topic, `callback`)
|
setChannelTopic(channel, topic, `callback`)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Sets the topic of a channel
|
Sets the topic of a channel
|
||||||
|
|||||||
@@ -450,7 +450,7 @@ var Client = (function (_EventEmitter) {
|
|||||||
return this.internal.sendTyping(channel).then(dataCallback(callback), errorCallback(callback));
|
return this.internal.sendTyping(channel).then(dataCallback(callback), errorCallback(callback));
|
||||||
};
|
};
|
||||||
|
|
||||||
// def setTopic
|
// def setChannelTopic
|
||||||
|
|
||||||
Client.prototype.setChannelTopic = function setChannelTopic(channel, topic) {
|
Client.prototype.setChannelTopic = function setChannelTopic(channel, topic) {
|
||||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
|
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
|
||||||
|
|||||||
@@ -1088,7 +1088,7 @@ var InternalClient = (function () {
|
|||||||
return this.updateDetails({ username: username });
|
return this.updateDetails({ username: username });
|
||||||
};
|
};
|
||||||
|
|
||||||
//def setTopic
|
//def setChannelTopic
|
||||||
|
|
||||||
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
|
InternalClient.prototype.setChannelTopic = function setChannelTopic(chann) {
|
||||||
var _this26 = this;
|
var _this26 = this;
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ export default class Client extends EventEmitter {
|
|||||||
.then(dataCallback(callback), errorCallback(callback));
|
.then(dataCallback(callback), errorCallback(callback));
|
||||||
}
|
}
|
||||||
|
|
||||||
// def setTopic
|
// def setChannelTopic
|
||||||
setChannelTopic(channel, topic, callback = (/*err, {}*/) => { }) {
|
setChannelTopic(channel, topic, callback = (/*err, {}*/) => { }) {
|
||||||
return this.internal.setChannelTopic(channel, topic)
|
return this.internal.setChannelTopic(channel, topic)
|
||||||
.then(dataCallback(callback), errorCallback(callback));
|
.then(dataCallback(callback), errorCallback(callback));
|
||||||
|
|||||||
@@ -933,7 +933,7 @@ export default class InternalClient {
|
|||||||
return this.updateDetails({username});
|
return this.updateDetails({username});
|
||||||
}
|
}
|
||||||
|
|
||||||
//def setTopic
|
//def setChannelTopic
|
||||||
setChannelTopic(chann, topic = "") {
|
setChannelTopic(chann, topic = "") {
|
||||||
return this.resolver.resolveChannel(chann)
|
return this.resolver.resolveChannel(chann)
|
||||||
.then(channel =>
|
.then(channel =>
|
||||||
|
|||||||
Reference in New Issue
Block a user