mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +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.deaf = data.deaf;
|
||||||
user.voiceState.self_deaf = data.self_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) {
|
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 {
|
} else {
|
||||||
server.eventVoiceJoin(user, channel);
|
server.eventVoiceJoin(user, channel);
|
||||||
client.emit("voiceJoin", 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
|
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.deaf != user.voiceState.deaf || oldState.self_deaf != user.voiceState.self_deaf)
|
||||||
&& oldState.mute !== undefined) {
|
&& oldState.mute !== undefined) {
|
||||||
client.emit("voiceUserStateChange", user, oldState);
|
client.emit("voiceStateUpdate", user, oldState);
|
||||||
} else {
|
} else {
|
||||||
server.eventVoiceJoin(user, channel);
|
server.eventVoiceJoin(user, channel);
|
||||||
client.emit("voiceJoin", user, channel);
|
client.emit("voiceJoin", user, channel);
|
||||||
|
|||||||
Reference in New Issue
Block a user