mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix voice state updates (#461)
* fix voice state updates * use .has for backwards compatability and consistency
This commit is contained in:
@@ -274,7 +274,7 @@ var Server = (function (_Equality) {
|
||||
|
||||
var chan = _ref3;
|
||||
|
||||
if (chan.members.has(user)) {
|
||||
if (chan.members.has("id", user.id)) {
|
||||
chan.members.remove(user);
|
||||
user.voiceChannel = null;
|
||||
return chan;
|
||||
|
||||
Reference in New Issue
Block a user