2026-09-05 10:56:28 +00:00
|
|
|
// Module ID: 7373
|
|
|
|
|
// Function ID: 7374
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-09-05 10:56:28 +00:00
|
|
|
// Dependencies: [502, 1957, 4579, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-05 10:56:28 +00:00
|
|
|
// Module 7373 (getCurrentVoiceChannel)
|
|
|
|
|
import closure_0 from "fetchFingerprint" /* 502 */;
|
|
|
|
|
import closure_1 from "ensureGuildLoaded" /* 1957 */;
|
|
|
|
|
import closure_2 from "updateVoiceState" /* 4579 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getCurrentVoiceChannel() {
|
|
|
|
|
const id = store.getId();
|
2026-07-23 10:11:24 +00:00
|
|
|
voiceStateForSession = voiceStateForSession.getVoiceStateForSession(id, store.getSessionId());
|
2026-07-20 16:05:17 +00:00
|
|
|
let channelId;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (voiceStateForSession != null) {
|
2026-07-20 16:05:17 +00:00
|
|
|
channelId = voiceStateForSession.channelId;
|
|
|
|
|
}
|
|
|
|
|
return channel.getChannel(channelId);
|
|
|
|
|
};
|