mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
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:
@@ -660,3 +660,13 @@ userUnbanned
|
||||
~~~~~~~~~~
|
||||
|
||||
Emitted when a user is unbanned from a server. Supplies two parameters, a User_ object and a Server_ object.
|
||||
|
||||
voiceJoin
|
||||
~~~~~~~~
|
||||
|
||||
Emitted when a user joins a voice channel, supplies a User_ and a VoiceChannel_
|
||||
|
||||
voiceLeave
|
||||
~~~~~~~~~~
|
||||
|
||||
Emitted when a user leaves a voice channel, supplies a User_ and a VoiceChannel_
|
||||
@@ -8,3 +8,12 @@ VoiceChannel
|
||||
A voice channel of a server. Currently, the voice channel class has no differences to the ServerChannel class.
|
||||
|
||||
--------
|
||||
|
||||
|
||||
Attributes
|
||||
----------
|
||||
|
||||
speaking
|
||||
~~~~~~~~
|
||||
|
||||
A Cache_ of User_s that are speaking in the voice channel
|
||||
Reference in New Issue
Block a user