2026-09-26 17:57:22 +00:00
|
|
|
// Module ID: 7647
|
|
|
|
|
// Function ID: 7648
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [502, 2041, 4807, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-26 17:57:22 +00:00
|
|
|
// Module 7647 (getCurrentVoiceChannel)
|
2026-09-18 19:45:33 +00:00
|
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2041 */;
|
|
|
|
|
import VoiceStateStore from "VoiceStateStore" /* 4807 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
|
|
|
|
|
|
|
|
|
|
export default function getCurrentVoiceChannel() {
|
|
|
|
|
const id = AuthenticationStore.getId();
|
|
|
|
|
const voiceStateForSession = VoiceStateStore.getVoiceStateForSession(id, AuthenticationStore.getSessionId());
|
|
|
|
|
let channelId;
|
|
|
|
|
if (voiceStateForSession != null) {
|
|
|
|
|
channelId = voiceStateForSession.channelId;
|
|
|
|
|
}
|
|
|
|
|
return ChannelStore.getChannel(channelId);
|
|
|
|
|
};
|