mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00:00
feat(voiceState): add self_video property (#4346)
This commit is contained in:
parent
1c275afd7c
commit
54a7fdadda
2 changed files with 6 additions and 0 deletions
|
|
@ -48,6 +48,11 @@ class VoiceState extends Base {
|
||||||
* @type {?boolean}
|
* @type {?boolean}
|
||||||
*/
|
*/
|
||||||
this.selfMute = data.self_mute;
|
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
|
* The session ID of this member's connection
|
||||||
* @type {?string}
|
* @type {?string}
|
||||||
|
|
|
||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
|
|
@ -1672,6 +1672,7 @@ declare module 'discord.js' {
|
||||||
public serverMute?: boolean;
|
public serverMute?: boolean;
|
||||||
public sessionID?: string;
|
public sessionID?: string;
|
||||||
public streaming: boolean;
|
public streaming: boolean;
|
||||||
|
public selfVideo: boolean;
|
||||||
public readonly speaking: boolean | null;
|
public readonly speaking: boolean | null;
|
||||||
|
|
||||||
public setDeaf(deaf: boolean, reason?: string): Promise<GuildMember>;
|
public setDeaf(deaf: boolean, reason?: string): Promise<GuildMember>;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue