feat(voiceState): add self_video property (#4346)

This commit is contained in:
uhKevinMC
2020-06-19 04:41:11 -05:00
committed by GitHub
parent 1c275afd7c
commit 54a7fdadda
2 changed files with 6 additions and 0 deletions

View File

@@ -48,6 +48,11 @@ class VoiceState extends Base {
* @type {?boolean}
*/
this.selfMute = data.self_mute;
/**
* Whether this member's camera is enabled
* @type {boolean}
*/
this.selfVideo = data.self_video;
/**
* The session ID of this member's connection
* @type {?string}

1
typings/index.d.ts vendored
View File

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