mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
CustomVoiceFilter: Add desktop client check for module path retrieval
This commit is contained in:
parent
e17f6cfa68
commit
fe417ace18
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue