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

46 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10402
// Function ID: 80250
2026-07-20 16:05:17 +00:00
// Name: isVoiceEmbeddedActivity
2026-07-25 08:10:48 +00:00
// Dependencies: [1194, 1348, 1907, 4147, 669, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 10402 (isVoiceEmbeddedActivity)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_3 from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import closure_5 from "_isNativeReflectConstruct";
const require = arg1;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/activities/utils/isVoiceEmbeddedActivity.tsx");
2026-07-20 16:05:17 +00:00
export default function isVoiceEmbeddedActivity(channelId) {
let obj = arg1;
let tmp = arg2;
if (arg1 === undefined) {
obj = closure_3;
}
if (tmp === undefined) {
tmp = closure_4;
}
const channel = obj.getChannel(channelId);
let tmp3 = null != channel;
if (tmp3) {
2026-07-23 10:11:24 +00:00
let tmp6 = channel.type === require(669) /* set */.ChannelTypes.GUILD_VOICE;
2026-07-20 16:05:17 +00:00
if (!tmp6) {
const tmp7 = !channel.isPrivate();
let tmp8 = !tmp7;
if (!tmp7) {
let tmp9 = channel.id === tmp2;
if (!tmp9) {
2026-07-23 10:11:24 +00:00
voiceStatesForChannel = voiceStatesForChannel.getVoiceStatesForChannel(channel.id);
tmp9 = null != voiceStatesForChannel[id.getId(id)];
2026-07-20 16:05:17 +00:00
}
tmp8 = tmp9;
}
tmp6 = tmp8;
}
tmp3 = tmp6;
}
return tmp3;
};