2026-09-03 10:05:34 +00:00
|
|
|
// Module ID: 9505
|
|
|
|
|
// Function ID: 9506
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isVoiceEmbeddedActivity
|
2026-09-02 09:53:35 +00:00
|
|
|
// Dependencies: [1215, 1386, 1980, 4497, 689, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-03 10:05:34 +00:00
|
|
|
// Module 9505 (isVoiceEmbeddedActivity)
|
2026-09-02 09:53:35 +00:00
|
|
|
import set from "set" /* 689 */;
|
|
|
|
|
import closure_2 from "fetchFingerprint" /* 1215 */;
|
|
|
|
|
import closure_3 from "ensureGuildLoaded" /* 1386 */;
|
|
|
|
|
import closure_4 from "handleConnectionOpen" /* 1980 */;
|
2026-09-01 10:26:29 +00:00
|
|
|
import closure_5 from "updateVoiceState" /* 4497 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/activities/utils/isVoiceEmbeddedActivity.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export default function isVoiceEmbeddedActivity(arg0) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = arg1;
|
|
|
|
|
if (arg1 === undefined) {
|
2026-08-24 06:08:38 +00:00
|
|
|
obj = closure_3;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
const channel = obj.getChannel(arg0);
|
2026-07-20 16:05:17 +00:00
|
|
|
let tmp3 = null != channel;
|
|
|
|
|
if (tmp3) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let tmp6 = channel.type === set.ChannelTypes.GUILD_VOICE;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!tmp6) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let isPrivateResult = channel.isPrivate();
|
|
|
|
|
if (isPrivateResult) {
|
|
|
|
|
let tmp8 = channel.id === tmp2;
|
|
|
|
|
if (!tmp8) {
|
2026-07-23 10:11:24 +00:00
|
|
|
voiceStatesForChannel = voiceStatesForChannel.getVoiceStatesForChannel(channel.id);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp8 = null != voiceStatesForChannel[id.getId(id)];
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
isPrivateResult = tmp8;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp6 = isPrivateResult;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
tmp3 = tmp6;
|
|
|
|
|
}
|
|
|
|
|
return tmp3;
|
|
|
|
|
};
|