// Module ID: 9452 // Function ID: 9453 // Name: getActivityChannelId // Dependencies: [1390, 1386, 4497, 2] // Exports: default // Module 9452 (getActivityChannelId) import set from "set" /* 2 */; import createChannelRecord from "createChannelRecord" /* 1390 */; import closure_1 from "ensureGuildLoaded" /* 1386 */; import closure_2 from "updateVoiceState" /* 4497 */; 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; };