decord/source/modules/activities/utils/isVoiceEmbeddedActivity.tsx

42 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9531
// Function ID: 9532
2026-07-20 16:05:17 +00:00
// Name: isVoiceEmbeddedActivity
// Dependencies: [502, 1957, 2011, 4579, 1094, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 9531 (isVoiceEmbeddedActivity)
import set from "set" /* 1094 */;
import closure_2 from "fetchFingerprint" /* 502 */;
import closure_3 from "ensureGuildLoaded" /* 1957 */;
import closure_4 from "handleConnectionOpen" /* 2011 */;
import closure_5 from "updateVoiceState" /* 4579 */;
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;
};