2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 7078
|
|
|
|
|
// Function ID: 7079
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [502, 2064, 5112, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 7078 (getCurrentVoiceChannel)
|
2026-09-10 05:38:07 +00:00
|
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
2026-10-09 10:00:15 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2064 */;
|
|
|
|
|
import VoiceStateStore from "VoiceStateStore" /* 5112 */;
|
2026-10-03 08:58:59 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getCurrentVoiceChannel() {
|
2026-10-03 08:58:59 +00:00
|
|
|
const getVoiceStateForSession = VoiceStateStore.getVoiceStateForSession;
|
2026-09-10 05:38:07 +00:00
|
|
|
const id = AuthenticationStore.getId();
|
2026-10-03 08:58:59 +00:00
|
|
|
const voiceStateForSession = getVoiceStateForSession(id, AuthenticationStore.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;
|
|
|
|
|
}
|
2026-09-10 05:38:07 +00:00
|
|
|
return ChannelStore.getChannel(channelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|