mirror of
https://github.com/danbulant/discord.js
synced 2026-05-23 06:19:09 +00:00
renamed voiceUserStateUpdate to voiceStateUpdate
This commit is contained in:
parent
6af71bf639
commit
b052d59e46
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue