diff --git a/src/plugins/customVoiceFilter/native.ts b/src/plugins/customVoiceFilter/native.ts index d407beee4..0f3d1a6a4 100644 --- a/src/plugins/customVoiceFilter/native.ts +++ b/src/plugins/customVoiceFilter/native.ts @@ -23,9 +23,16 @@ interface IVoiceFilter { downloadUrl?: string; } +interface IDownloadResponse { + success: boolean; + voiceFilter: IVoiceFilter; + path: string | null; + response: Response | null; +} + const fs = require("fs"); -export async function downloadCustomVoiceFilter(_: IpcMainInvokeEvent, modulePath: string, voiceFilter: IVoiceFilter): Promise<{ success: boolean, voiceFilter: IVoiceFilter, path: string | null, response: Response | null; }> { +export async function downloadCustomVoiceFilter(_: IpcMainInvokeEvent, modulePath: string, voiceFilter: IVoiceFilter): Promise { if (!fs.existsSync(modulePath + "/discord_voice_filters")) { fs.mkdirSync(modulePath + "/discord_voice_filters"); }