mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Un-meowwww
This commit is contained in:
@@ -1732,18 +1732,14 @@ var InternalClient = (function () {
|
||||
var user = self.users.get("id", data.user_id);
|
||||
var server = self.servers.get("id", data.guild_id);
|
||||
|
||||
console.log("2 meowwww");
|
||||
if (user && server) {
|
||||
|
||||
console.log("1 meowwww");
|
||||
if (data.channel_id) {
|
||||
// in voice channel
|
||||
console.log("meowwww");
|
||||
var channel = self.channels.get("id", data.channel_id);
|
||||
if (channel && channel.type === "voice") {
|
||||
server.eventVoiceStateUpdate(channel, user, data);
|
||||
} else {
|
||||
console.log("mewarnow");
|
||||
client.emit("warn", "voice state channel not in cache");
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user