mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
renamed voiceUserStateUpdate to voiceStateUpdate
This commit is contained in:
@@ -1717,7 +1717,7 @@ var InternalClient = (function () {
|
||||
user.voiceState.deaf = data.deaf;
|
||||
user.voiceState.self_deaf = data.self_deaf;
|
||||
if ((oldState.mute != user.voiceState.mute || oldState.self_mute != user.voiceState.self_mute || oldState.deaf != user.voiceState.deaf || oldState.self_deaf != user.voiceState.self_deaf) && oldState.mute !== undefined) {
|
||||
client.emit("voiceUserStateChange", user, oldState);
|
||||
client.emit("voiceStateUpdate", user, oldState);
|
||||
} else {
|
||||
server.eventVoiceJoin(user, channel);
|
||||
client.emit("voiceJoin", user, channel);
|
||||
|
||||
Reference in New Issue
Block a user