feat(VoiceState): add VoiceState#streaming (#3521)

* feat: add VoiceState#streaming

* typings: add VoiceState#streaming
This commit is contained in:
izexi
2019-10-04 15:44:35 +01:00
committed by SpaceEEC
parent 48856c0815
commit a8f06f251f
2 changed files with 6 additions and 0 deletions

View File

@@ -53,6 +53,11 @@ class VoiceState extends Base {
* @type {?string}
*/
this.sessionID = data.session_id;
/**
* Whether this member is streaming using "Go Live"
* @type {boolean}
*/
this.streaming = data.self_stream || false;
/**
* The ID of the voice channel that this member is in
* @type {?Snowflake}

1
typings/index.d.ts vendored
View File

@@ -1579,6 +1579,7 @@ declare module 'discord.js' {
public serverDeaf?: boolean;
public serverMute?: boolean;
public sessionID?: string;
public streaming: boolean;
public readonly speaking: boolean | null;
public setDeaf(deaf: boolean, reason?: string): Promise<GuildMember>;