2026-09-24 16:03:38 +00:00
|
|
|
// Module ID: 7649
|
|
|
|
|
// Function ID: 7650
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-09-24 16:03:38 +00:00
|
|
|
// Dependencies: [502, 2045, 4809, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-24 16:03:38 +00:00
|
|
|
// Module 7649 (getCurrentVoiceChannel)
|
2026-09-18 19:45:33 +00:00
|
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
2026-09-21 19:31:18 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
2026-09-24 16:03:38 +00:00
|
|
|
import VoiceStateStore from "VoiceStateStore" /* 4809 */;
|
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);
|
|
|
|
|
};
|