mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fix voice channel joining
This commit is contained in:
@@ -262,7 +262,7 @@ export default class Server extends Equality {
|
||||
}
|
||||
|
||||
eventVoiceLeave(user) {
|
||||
for (let chan of this.channels.getAll("type", "voice")) {
|
||||
for (let chan of this.channels.getAll("type", 2)) {
|
||||
if (chan.members.has("id", user.id)) {
|
||||
chan.members.remove(user);
|
||||
user.voiceChannel = null;
|
||||
|
||||
Reference in New Issue
Block a user