mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Don't require a server for moveMember
This commit is contained in:
@@ -696,12 +696,13 @@ var InternalClient = (function () {
|
||||
|
||||
// def moveMember
|
||||
|
||||
InternalClient.prototype.moveMember = function moveMember(user, server, channel) {
|
||||
InternalClient.prototype.moveMember = function moveMember(user, channel) {
|
||||
var _this19 = this;
|
||||
|
||||
user = this.resolver.resolveUser(user);
|
||||
server = this.resolver.resolveServer(server);
|
||||
return this.resolver.resolveChannel(channel).then(function (channel) {
|
||||
var server = channel.server;
|
||||
|
||||
// Make sure `channel` is a voice channel
|
||||
if (channel.type !== "voice") {
|
||||
throw new Error("Can't moveMember into a non-voice channel");
|
||||
|
||||
Reference in New Issue
Block a user