decord/beta/source/modules/rpc/helpers/getCurrentVoiceChannel.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

23 lines
821 B
TypeScript

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