2026-09-03 10:05:34 +00:00
|
|
|
// Module ID: 6227
|
|
|
|
|
// Function ID: 6228
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-09-02 09:53:35 +00:00
|
|
|
// Dependencies: [1215, 1386, 4497, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-03 10:05:34 +00:00
|
|
|
// Module 6227 (getCurrentVoiceChannel)
|
2026-09-02 09:53:35 +00:00
|
|
|
import closure_0 from "fetchFingerprint" /* 1215 */;
|
|
|
|
|
import closure_1 from "ensureGuildLoaded" /* 1386 */;
|
2026-09-01 10:26:29 +00:00
|
|
|
import closure_2 from "updateVoiceState" /* 4497 */;
|
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);
|
|
|
|
|
};
|