41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
// Module ID: 9505
|
|
// Function ID: 9506
|
|
// Name: isVoiceEmbeddedActivity
|
|
// Dependencies: [1215, 1386, 1980, 4497, 689, 2]
|
|
// Exports: default
|
|
|
|
// Module 9505 (isVoiceEmbeddedActivity)
|
|
import set from "set" /* 689 */;
|
|
import closure_2 from "fetchFingerprint" /* 1215 */;
|
|
import closure_3 from "ensureGuildLoaded" /* 1386 */;
|
|
import closure_4 from "handleConnectionOpen" /* 1980 */;
|
|
import closure_5 from "updateVoiceState" /* 4497 */;
|
|
|
|
require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/activities/utils/isVoiceEmbeddedActivity.tsx");
|
|
|
|
export default function isVoiceEmbeddedActivity(arg0) {
|
|
let obj = arg1;
|
|
if (arg1 === undefined) {
|
|
obj = closure_3;
|
|
}
|
|
const channel = obj.getChannel(arg0);
|
|
let tmp3 = null != channel;
|
|
if (tmp3) {
|
|
let tmp6 = channel.type === set.ChannelTypes.GUILD_VOICE;
|
|
if (!tmp6) {
|
|
let isPrivateResult = channel.isPrivate();
|
|
if (isPrivateResult) {
|
|
let tmp8 = channel.id === tmp2;
|
|
if (!tmp8) {
|
|
voiceStatesForChannel = voiceStatesForChannel.getVoiceStatesForChannel(channel.id);
|
|
tmp8 = null != voiceStatesForChannel[id.getId(id)];
|
|
}
|
|
isPrivateResult = tmp8;
|
|
}
|
|
tmp6 = isPrivateResult;
|
|
}
|
|
tmp3 = tmp6;
|
|
}
|
|
return tmp3;
|
|
};
|