2026-08-08 06:10:11 +00:00
|
|
|
// Module ID: 5988
|
|
|
|
|
// Function ID: 5989
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-08-08 06:10:11 +00:00
|
|
|
// Dependencies: [1218, 1372, 4319, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-08 06:10:11 +00:00
|
|
|
// Module 5988 (getCurrentVoiceChannel)
|
2026-07-29 08:29:29 +00:00
|
|
|
import fetchFingerprint from "fetchFingerprint";
|
|
|
|
|
import ensureGuildLoaded from "ensureGuildLoaded";
|
|
|
|
|
import updateVoiceState from "updateVoiceState";
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
const result = require("updateVoiceState").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);
|
|
|
|
|
};
|