decord/source/modules/activities/utils/getActivityChannelId.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

41 lines
1.2 KiB
TypeScript

// Module ID: 13163
// Function ID: 13164
// Name: getActivityChannelId
// Dependencies: [1961, 1957, 4655, 2]
// Exports: default
// Module 13163 (getActivityChannelId)
import ChannelRecord from "ChannelRecord" /* 1961 */;
import ChannelStore from "ChannelStore" /* 1957 */;
import VoiceStateStore from "VoiceStateStore" /* 4655 */;
import size from "module_2" /* 2 */;
const isTextChannel = ChannelRecord.isTextChannel;
const result = size.fileFinishedImporting("modules/activities/utils/getActivityChannelId.tsx");
export default function getActivityChannelId(userId) {
({ channelId, activity } = userId);
const channel = ChannelStore.getChannel(channelId);
let session_id;
if (activity != null) {
session_id = activity.session_id;
}
let tmp3 = channelId;
if (null != session_id) {
if (null == channel) {
let session_id1;
if (activity != null) {
session_id1 = activity.session_id;
}
const voiceStateForSession = VoiceStateStore.getVoiceStateForSession(userId.userId, session_id1);
let channelId1;
if (voiceStateForSession != null) {
channelId1 = voiceStateForSession.channelId;
}
tmp3 = channelId1;
} else {
tmp3 = channelId;
}
}
return tmp3;
};