mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Fix using deleteChannel on private channels
This commit is contained in:
@@ -227,7 +227,7 @@ var Server = (function (_Equality) {
|
||||
channel.members.add(user);
|
||||
user.voiceChannel = channel;
|
||||
|
||||
if (oldChannel.id) {
|
||||
if (oldChannel.id && channel.id !== oldChannel.id) {
|
||||
this.client.emit("voiceLeave", oldChannel, user);
|
||||
this.client.emit("voiceSwitch", oldChannel, channel, user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user