mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-20 13:33:30 +01:00
Handle resolveChannel correctly because it returns a promise
This commit is contained in:
@@ -576,8 +576,9 @@ export default class InternalClient {
|
|||||||
moveMember(user, server, channel) {
|
moveMember(user, server, channel) {
|
||||||
user = this.resolver.resolveUser(user);
|
user = this.resolver.resolveUser(user);
|
||||||
server = this.resolver.resolveServer(server);
|
server = this.resolver.resolveServer(server);
|
||||||
channel = this.resolver.resolveChannel(channel);
|
return this.resolver.resolveChannel(channel).then(channel => {
|
||||||
|
console.log(channel.id);
|
||||||
|
console.log(channel.name);
|
||||||
console.log(channel.type);
|
console.log(channel.type);
|
||||||
// Make sure `channel` is a voice channel
|
// Make sure `channel` is a voice channel
|
||||||
if(channel.type !== "voice") {
|
if(channel.type !== "voice") {
|
||||||
@@ -589,6 +590,7 @@ export default class InternalClient {
|
|||||||
return res;
|
return res;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// def createRole
|
// def createRole
|
||||||
|
|||||||
Reference in New Issue
Block a user