decord/source/modules/activities/utils/getActivityChannelId.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

41 lines
1.2 KiB
TypeScript

// Module ID: 13037
// Function ID: 13038
// Name: getActivityChannelId
// Dependencies: [1961, 1957, 4579, 2]
// Exports: default
// Module 13037 (getActivityChannelId)
import set from "set" /* 2 */;
import createChannelRecord from "createChannelRecord" /* 1961 */;
import closure_1 from "ensureGuildLoaded" /* 1957 */;
import closure_2 from "updateVoiceState" /* 4579 */;
const isTextChannel = createChannelRecord.isTextChannel;
const result = set.fileFinishedImporting("modules/activities/utils/getActivityChannelId.tsx");
export default function getActivityChannelId(userId) {
({ channelId, activity } = userId);
channel = channel.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;
}
voiceStateForSession = voiceStateForSession.getVoiceStateForSession(userId.userId, session_id1);
channelId = undefined;
if (voiceStateForSession != null) {
channelId = voiceStateForSession.channelId;
}
tmp3 = channelId;
} else {
tmp3 = channelId;
}
}
return tmp3;
};