fix: #449
This commit is contained in:
parent
ec0db1aacb
commit
98450be221
@ -63,16 +63,6 @@ class VoiceState extends Base {
|
|||||||
this.selfMute ??= null;
|
this.selfMute ??= null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('self_stream' in data) {
|
|
||||||
/**
|
|
||||||
* Whether this member is streaming using "Go Live"
|
|
||||||
* @type {?boolean}
|
|
||||||
*/
|
|
||||||
this.streaming = data.self_stream;
|
|
||||||
} else {
|
|
||||||
this.streaming ??= null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ('self_video' in data) {
|
if ('self_video' in data) {
|
||||||
/**
|
/**
|
||||||
* Whether this member's camera is enabled
|
* Whether this member's camera is enabled
|
||||||
@ -93,6 +83,14 @@ class VoiceState extends Base {
|
|||||||
this.sessionId ??= null;
|
this.sessionId ??= null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The self_stream is property is omitted if false, check for another property
|
||||||
|
// here to avoid incorrectly clearing this when partial data is specified
|
||||||
|
/**
|
||||||
|
* Whether this member is streaming using "Screen Share"
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
|
this.streaming = data.self_stream ?? false;
|
||||||
|
|
||||||
if ('channel_id' in data) {
|
if ('channel_id' in data) {
|
||||||
/**
|
/**
|
||||||
* The {@link VoiceChannel} or {@link StageChannel} id the member is in
|
* The {@link VoiceChannel} or {@link StageChannel} id the member is in
|
||||||
|
1345
src/util/Voice.js
1345
src/util/Voice.js
File diff suppressed because it is too large
Load Diff
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@ -6301,9 +6301,7 @@ export interface BaseMessageSelectMenuOptions {
|
|||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
}
|
}
|
||||||
export interface StringMessageSelectMenuOptions extends BaseMessageSelectMenuOptions {
|
export interface StringMessageSelectMenuOptions extends BaseMessageSelectMenuOptions {
|
||||||
type?:
|
type?: 'STRING_SELECT' | SelectMenuComponentTypes.STRING_SELECT;
|
||||||
| 'STRING_SELECT'
|
|
||||||
| SelectMenuComponentTypes.STRING_SELECT;
|
|
||||||
options?: MessageSelectOptionData[];
|
options?: MessageSelectOptionData[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user