mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +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:
3
src/Structures/User.js
Normal file → Executable file
3
src/Structures/User.js
Normal file → Executable file
@@ -4,7 +4,7 @@ import Equality from "../Util/Equality";
|
||||
import {Endpoints} from "../Constants";
|
||||
import {reg} from "../Util/ArgumentRegulariser";
|
||||
|
||||
export default class User extends Equality{
|
||||
export default class User extends Equality {
|
||||
constructor(data, client){
|
||||
super();
|
||||
this.client = client;
|
||||
@@ -22,6 +22,7 @@ export default class User extends Equality{
|
||||
this.note = data.note || null;
|
||||
this.voiceChannel = null;
|
||||
this.voiceState = {};
|
||||
this.speaking = false;
|
||||
}
|
||||
|
||||
get createdAt() {
|
||||
|
||||
Reference in New Issue
Block a user