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

41 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 10466
// Function ID: 10467
2026-07-20 16:05:17 +00:00
// Name: isVoiceEmbeddedActivity
2026-07-29 08:29:29 +00:00
// Dependencies: [1218, 1372, 1931, 4205, 692, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 10466 (isVoiceEmbeddedActivity)
import fetchFingerprint from "fetchFingerprint";
import ensureGuildLoaded from "ensureGuildLoaded";
import handleConnectionOpen from "handleConnectionOpen";
import updateVoiceState from "updateVoiceState";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("handleConnectionOpen").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-07-29 08:29:29 +00:00
obj = ensureGuildLoaded;
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-07-29 08:29:29 +00:00
let tmp6 = channel.type === require(692) /* 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;
};