Update index.ts

This commit is contained in:
v 2025-02-11 15:55:02 +01:00 committed by GitHub
parent 322e3fd52b
commit c9704f2962
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,20 +32,7 @@ customSettingsSections.push(() => ({
className: "vc-vesktop-settings"
}));
const arRPC = Vencord.Plugins.plugins["WebRichPresence (arRPC)"] as any as {
handleEvent(e: MessageEvent): void;
};
VesktopNative.arrpc.onActivity(async data => {
if (!Settings.store.arRPC) return;
await onceReady;
arRPC.handleEvent(new MessageEvent("message", { data }));
});
const VoiceActions = findByPropsLazy("toggleSelfMute");
VesktopNative.voice.onToggleSelfMute(() => VoiceActions.toggleSelfMute());
VesktopNative.voice.onToggleSelfDeaf(() => VoiceActions.toggleSelfDeaf());