decord/source/modules/rpc/helpers/getCurrentVoiceChannel.tsx

23 lines
797 B
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 10757
// Function ID: 83478
2026-07-20 16:05:17 +00:00
// Name: getCurrentVoiceChannel
2026-07-28 08:39:19 +00:00
// Dependencies: [1194, 1348, 4181, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-28 08:39:19 +00:00
// Module 10757 (getCurrentVoiceChannel)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_1 from "_isNativeReflectConstruct";
import closure_2 from "_isNativeReflectConstruct";
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/rpc/helpers/getCurrentVoiceChannel.tsx");
2026-07-20 16:05:17 +00:00
export default function getCurrentVoiceChannel() {
const id = store.getId();
2026-07-23 10:11:24 +00:00
voiceStateForSession = voiceStateForSession.getVoiceStateForSession(id, store.getSessionId());
2026-07-20 16:05:17 +00:00
let channelId;
if (null != voiceStateForSession) {
channelId = voiceStateForSession.channelId;
}
return channel.getChannel(channelId);
};