// Module ID: 7078 // Function ID: 7079 // Name: getCurrentVoiceChannel // Dependencies: [502, 2064, 5112, 2] // Exports: default // Module 7078 (getCurrentVoiceChannel) import AuthenticationStore from "AuthenticationStore" /* 502 */; import ChannelStore from "ChannelStore" /* 2064 */; import VoiceStateStore from "VoiceStateStore" /* 5112 */; import size from "module_2" /* 2 */; const result = size.fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx"); export default function getCurrentVoiceChannel() { const getVoiceStateForSession = VoiceStateStore.getVoiceStateForSession; const id = AuthenticationStore.getId(); const voiceStateForSession = getVoiceStateForSession(id, AuthenticationStore.getSessionId()); let channelId; if (voiceStateForSession != null) { channelId = voiceStateForSession.channelId; } return ChannelStore.getChannel(channelId); };