From fe417ace18691de889b2be4506540c0f4ef150e7 Mon Sep 17 00:00:00 2001 From: fox3000foxy Date: Thu, 20 Feb 2025 11:23:50 +0100 Subject: [PATCH] CustomVoiceFilter: Add desktop client check for module path retrieval --- src/plugins/customVoiceFilter/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/customVoiceFilter/index.tsx b/src/plugins/customVoiceFilter/index.tsx index 37d6eb5e1..55d482fec 100644 --- a/src/plugins/customVoiceFilter/index.tsx +++ b/src/plugins/customVoiceFilter/index.tsx @@ -304,8 +304,10 @@ export default definePlugin({ useVoiceFiltersStore.subscribe(store => store.updateVoicesList()); - const modulePath = await DiscordNative.fileManager.getModulePath(); - useVoiceFiltersStore.getState().modulePath = modulePath; + if (getClient().client === "desktop") { + const modulePath = await DiscordNative.fileManager.getModulePath(); + useVoiceFiltersStore.getState().modulePath = modulePath; + } // // ============ DEMO ============ // const templaceVoicePackObject: IVoiceFilter = JSON.parse(templateVoicepack);