Files
discord-decomp/modules/rpc/helpers/getCurrentVoiceChannel.tsx
T
2026-11-01 12:12:55 +02:00

8 lines
428 B
TypeScript

// Metro module 10781 (f10782).
import AuthenticationStore from "../../../stores/AuthenticationStore";
import ChannelStore from "../../../stores/ChannelStore";
import VoiceStateStore from "../../../stores/VoiceStateStore";
export default function getCurrentVoiceChannel() {
return ChannelStore.getChannel(VoiceStateStore.getVoiceStateForSession(AuthenticationStore.getId(), AuthenticationStore.getSessionId())?.channelId);
};