2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 6978
|
|
|
|
|
// Function ID: 6979
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getCurrentVoiceChannel
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [502, 2044, 4864, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 6978 (getCurrentVoiceChannel)
|
2026-09-10 05:38:07 +00:00
|
|
|
import AuthenticationStore from "AuthenticationStore" /* 502 */;
|
2026-10-01 06:55:13 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
|
|
|
|
import VoiceStateStore from "VoiceStateStore" /* 4864 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function getCurrentVoiceChannel() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const id = AuthenticationStore.getId();
|
|
|
|
|
const voiceStateForSession = VoiceStateStore.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
|
|
|
};
|