Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
47 lines
1.5 KiB
TypeScript
47 lines
1.5 KiB
TypeScript
// Module ID: 4856
|
|
// Function ID: 4857
|
|
// Name: VoiceStateRecord
|
|
// Dependencies: [1387, 2]
|
|
|
|
// Module 4856 (VoiceStateRecord)
|
|
import Record from "Record" /* 1387 */;
|
|
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("records/VoiceStateRecord.tsx");
|
|
class VoiceStateRecord extends tmp2 {
|
|
constructor(arg0) {
|
|
tmp2 = new VoiceStateRecord(tmp, new.target);
|
|
tmp3 = global.userId || "";
|
|
tmp2.userId = tmp3;
|
|
tmp2.channelId = global.channelId || null;
|
|
tmp2.sessionId = global.sessionId || null;
|
|
tmp2.mute = global.mute || false;
|
|
tmp2.deaf = global.deaf || false;
|
|
tmp2.selfMute = global.selfMute || false;
|
|
tmp2.selfDeaf = global.selfDeaf || false;
|
|
tmp2.selfVideo = global.selfVideo || false;
|
|
tmp2.selfStream = global.selfStream || false;
|
|
tmp2.suppress = global.suppress || false;
|
|
({ requestToSpeakTimestamp: tmp2.requestToSpeakTimestamp, discoverable } = global);
|
|
if (discoverable == null) {
|
|
discoverable = true;
|
|
}
|
|
tmp2.discoverable = discoverable;
|
|
tmp2.connectedAt = global.connectedAt;
|
|
return tmp2;
|
|
}
|
|
}
|
|
const prototype = VoiceStateRecord.prototype;
|
|
prototype["isVoiceMuted"] = function isVoiceMuted() {
|
|
const self = this;
|
|
let tmp = this.selfMute || self.mute || self.suppress;
|
|
if (!tmp) {
|
|
tmp = null != self.requestToSpeakTimestamp;
|
|
}
|
|
return tmp;
|
|
};
|
|
prototype["isVoiceDeafened"] = function isVoiceDeafened() {
|
|
return this.selfDeaf || this.deaf;
|
|
};
|
|
|
|
export default VoiceStateRecord;
|