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