mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
Added a voiceSpeaking event, fired when a user in a voiceChannel starts or stops speaking. (#452)
* Added an event for the voice speaking packet. * Updated the docs to reflect the voiceSpeaking event addition. * Fixed some spacing issues in the VoiceConnection.js file. * Moved the speaking boolean to the User object.
This commit is contained in:
13
docs/docs_client.rst
Normal file → Executable file
13
docs/docs_client.rst
Normal file → Executable file
@@ -1015,19 +1015,24 @@ Emitted when a note is updated. Supplies a User_ object (containing the updated
|
||||
voiceJoin
|
||||
~~~~~~~~
|
||||
|
||||
Emitted when a user joins a voice channel, supplies a VoiceChannel_ and a User_
|
||||
Emitted when a user joins a voice channel, supplies a VoiceChannel_ and a User_.
|
||||
|
||||
voiceSwitch
|
||||
~~~~~~~~~~~
|
||||
|
||||
Emitted when a user switches voice channels, supplies the old VoiceChannel_, the new VoiceChannel_, and a User_
|
||||
Emitted when a user switches voice channels, supplies the old VoiceChannel_, the new VoiceChannel_, and a User_.
|
||||
|
||||
voiceLeave
|
||||
~~~~~~~~~~
|
||||
|
||||
Emitted when a user leaves a voice channel, supplies a VoiceChannel_ and a User_
|
||||
Emitted when a user leaves a voice channel, supplies a VoiceChannel_ and a User_.
|
||||
|
||||
voiceStateUpdate
|
||||
~~~~~~~~~~
|
||||
|
||||
Emitted when a user mutes/deafens, supplies a VoiceChannel_, User_, an object containing the old mute/selfMute/deaf/selfDeaf properties, and an object containing the new mute/selfMute/deaf/selfDeaf properties
|
||||
Emitted when a user mutes/deafens, supplies a VoiceChannel_, User_, an object containing the old mute/selfMute/deaf/selfDeaf properties, and an object containing the new mute/selfMute/deaf/selfDeaf properties.
|
||||
|
||||
voiceSpeaking
|
||||
~~~~~~~~~~~
|
||||
|
||||
Emitted when a user starts or stops speaking, supplies a VoiceChannel_, and User_. The `speaking` property under the supplied User_ object can be used to determine whether the user started or stopped speaking.
|
||||
Reference in New Issue
Block a user