mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
feat(VoiceState): add VoiceState#streaming (#3521)
* feat: add VoiceState#streaming * typings: add VoiceState#streaming
This commit is contained in:
parent
48856c0815
commit
a8f06f251f
2 changed files with 6 additions and 0 deletions
|
|
@ -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
1
typings/index.d.ts
vendored
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue