Un-meowwww

This commit is contained in:
abalabahaha
2016-02-12 19:59:41 -08:00
parent 54045de5f1
commit e404361858
3 changed files with 25 additions and 29 deletions

View File

@@ -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 {