mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Compiled lib
This commit is contained in:
@@ -417,10 +417,10 @@ var Client = (function (_EventEmitter) {
|
||||
|
||||
// def setTopic
|
||||
|
||||
Client.prototype.setTopic = function setTopic(channel, topic) {
|
||||
Client.prototype.setChannelTopic = function setChannelTopic(channel, topic) {
|
||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err*/{} : arguments[2];
|
||||
|
||||
return this.internal.setTopic(channel, topic).then(callback, errCB(callback));
|
||||
return this.internal.setChannelTopic(channel, topic).then(callback, errCB(callback));
|
||||
};
|
||||
|
||||
//def setChannelName
|
||||
@@ -439,6 +439,14 @@ var Client = (function (_EventEmitter) {
|
||||
return this.internal.setChannelNameAndTopic(channel, name, topic).then(callback, errCB(callback));
|
||||
};
|
||||
|
||||
//def setChannelPosition
|
||||
|
||||
Client.prototype.setChannelPosition = function setChannelPosition(channel, position) {
|
||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err*/{} : arguments[2];
|
||||
|
||||
return this.internal.setChannelPosition(channel, position).then(callback, errCB(callback));
|
||||
};
|
||||
|
||||
//def updateChannel
|
||||
|
||||
Client.prototype.updateChannel = function updateChannel(channel, data) {
|
||||
|
||||
Reference in New Issue
Block a user