mirror of
https://github.com/danbulant/discord.js
synced 2026-07-10 05:31:13 +00:00
Un-meowwww
This commit is contained in:
parent
54045de5f1
commit
e404361858
3 changed files with 25 additions and 29 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue