22 lines
768 B
TypeScript
22 lines
768 B
TypeScript
// Module ID: 10795
|
|
// Function ID: 10796
|
|
// Name: getCurrentVoiceChannel
|
|
// Dependencies: [1218, 1372, 4209, 2]
|
|
// Exports: default
|
|
|
|
// Module 10795 (getCurrentVoiceChannel)
|
|
import fetchFingerprint from "fetchFingerprint";
|
|
import ensureGuildLoaded from "ensureGuildLoaded";
|
|
import updateVoiceState from "updateVoiceState";
|
|
|
|
const result = require("updateVoiceState").fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
|
|
|
|
export default function getCurrentVoiceChannel() {
|
|
const id = store.getId();
|
|
voiceStateForSession = voiceStateForSession.getVoiceStateForSession(id, store.getSessionId());
|
|
let channelId;
|
|
if (voiceStateForSession != null) {
|
|
channelId = voiceStateForSession.channelId;
|
|
}
|
|
return channel.getChannel(channelId);
|
|
};
|