Added websocket voice state watching

Now emits voiceJoin(user, voice_channel) or voiceLeave(user, voice_channel) and adds/removes from voice_channel.speaking when a user joins or leaves a voice channel.
This commit is contained in:
Amish Shah
2015-12-26 15:38:53 +00:00
parent 7b2f4e3357
commit 9c0e20947c
9 changed files with 157 additions and 11 deletions

View File

@@ -83,5 +83,6 @@ export const PacketType = {
PRESENCE_UPDATE : "PRESENCE_UPDATE",
TYPING : "TYPING_START",
SERVER_BAN_ADD : "GUILD_BAN_ADD",
SERVER_BAN_REMOVE : "GUILD_BAN_REMOVE"
SERVER_BAN_REMOVE: "GUILD_BAN_REMOVE",
VOICE_STATE_UPDATE : "VOICE_STATE_UPDATE"
};