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