decord/source/modules/rpc/helpers/getCurrentVoiceChannel.tsx
2026-08-27 16:17:25 +00:00

22 lines
763 B
TypeScript

// Module ID: 6169
// Function ID: 6170
// Name: getCurrentVoiceChannel
// Dependencies: [1218, 1391, 4464, 2]
// Exports: default
// Module 6169 (getCurrentVoiceChannel)
import closure_0 from "fetchFingerprint" /* 1218 */;
import closure_1 from "ensureGuildLoaded" /* 1391 */;
import closure_2 from "updateVoiceState" /* 4464 */;
const result = require("set").fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
export default function getCurrentVoiceChannel() {
const id = store.getId();
voiceStateForSession = voiceStateForSession.getVoiceStateForSession(id, store.getSessionId());
let channelId;
if (voiceStateForSession != null) {
channelId = voiceStateForSession.channelId;
}
return channel.getChannel(channelId);
};