renamed voiceUserStateUpdate to voiceStateUpdate

This commit is contained in:
abalabahaha
2016-01-29 21:00:23 -08:00
parent 6af71bf639
commit b052d59e46
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -1510,7 +1510,7 @@ export default class InternalClient {
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);