CustomVoiceFilter: Add desktop client check for module path retrieval

This commit is contained in:
fox3000foxy 2025-02-20 11:23:50 +01:00
parent e17f6cfa68
commit fe417ace18

View file

@ -304,8 +304,10 @@ export default definePlugin({
useVoiceFiltersStore.subscribe(store => store.updateVoicesList());
if (getClient().client === "desktop") {
const modulePath = await DiscordNative.fileManager.getModulePath();
useVoiceFiltersStore.getState().modulePath = modulePath;
}
// // ============ DEMO ============
// const templaceVoicePackObject: IVoiceFilter = JSON.parse(templateVoicepack);