2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 6097
|
|
|
|
|
// Function ID: 6098
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [1218, 1391, 4399, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 6097 (getCurrentVoiceChannel)
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_0 from "fetchFingerprint" /* 1218 */;
|
|
|
|
|
import closure_1 from "ensureGuildLoaded" /* 1391 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import closure_2 from "updateVoiceState" /* 4399 */;
|
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);
|
|
|
|
|
};
|