Skip to content

Commit 54a7fda

Browse files
author
uhKevinMC
authored
feat(voiceState): add self_video property (#4346)
1 parent 1c275af commit 54a7fda

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/structures/VoiceState.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ class VoiceState extends Base {
4848
* @type {?boolean}
4949
*/
5050
this.selfMute = data.self_mute;
51+
/**
52+
* Whether this member's camera is enabled
53+
* @type {boolean}
54+
*/
55+
this.selfVideo = data.self_video;
5156
/**
5257
* The session ID of this member's connection
5358
* @type {?string}

typings/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,7 @@ declare module 'discord.js' {
16721672
public serverMute?: boolean;
16731673
public sessionID?: string;
16741674
public streaming: boolean;
1675+
public selfVideo: boolean;
16751676
public readonly speaking: boolean | null;
16761677

16771678
public setDeaf(deaf: boolean, reason?: string): Promise<GuildMember>;

0 commit comments

Comments
 (0)