decord/beta/source/records/VoiceStateRecord.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

47 lines
1.5 KiB
TypeScript

// Module ID: 4778
// Function ID: 4779
// Name: VoiceStateRecord
// Dependencies: [1391, 2]
// Module 4778 (VoiceStateRecord)
import Record from "Record" /* 1391 */;
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;