decord/alpha/source/modules/rpc/helpers/getCurrentVoiceChannel.tsx
github-actions 45f5884862 chore: update source for alpha 348.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5012.js (118.4 MB)
2026-09-23 06:49:31 +00:00

23 lines
821 B
TypeScript

// Module ID: 7701
// Function ID: 7702
// Name: getCurrentVoiceChannel
// Dependencies: [502, 2042, 4846, 2]
// Exports: default
// Module 7701 (getCurrentVoiceChannel)
import AuthenticationStore from "AuthenticationStore" /* 502 */;
import ChannelStore from "ChannelStore" /* 2042 */;
import VoiceStateStore from "VoiceStateStore" /* 4846 */;
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);
};