decord/source/modules/rpc/helpers/getCurrentVoiceChannel.tsx
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

23 lines
821 B
TypeScript

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