decord/source/modules/rpc/helpers/getCurrentVoiceChannel.tsx
2026-08-14 17:33:39 +00:00

22 lines
765 B
TypeScript

// Module ID: 6052
// Function ID: 6053
// Name: getCurrentVoiceChannel
// Dependencies: [1218, 1391, 4361, 2]
// Exports: default
// Module 6052 (getCurrentVoiceChannel)
import fetchFingerprint from "fetchFingerprint";
import ensureGuildLoaded from "ensureGuildLoaded";
import updateVoiceState from "updateVoiceState";
const result = require("updateVoiceState").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);
};