mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Merge pull request #168 from hydrabolt/issue/144
Allow moving users to voice channels
This commit is contained in:
@@ -336,6 +336,14 @@ var Client = (function (_EventEmitter) {
|
||||
return this.internal.kickMember(user, server).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def moveMember
|
||||
|
||||
Client.prototype.moveMember = function moveMember(user, channel) {
|
||||
var callback = arguments.length <= 2 || arguments[2] === undefined ? function () /*err, {}*/{} : arguments[2];
|
||||
|
||||
return this.internal.moveMember(user, channel).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def createRole
|
||||
|
||||
Client.prototype.createRole = function createRole(server) {
|
||||
|
||||
Reference in New Issue
Block a user