From 6eec4e6829b00634abb51ccc0b6fd71ca399337c Mon Sep 17 00:00:00 2001 From: spy Date: Tue, 30 Jul 2024 16:41:50 -0400 Subject: [PATCH 1/2] Replace @discordjs/opus with opusscript 0.1.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cc72dec..281667e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "typescript": "^5.3.3" }, "dependencies": { - "@discordjs/opus": "^0.9.0", + "opusscript": "^0.1.1", "@discordjs/voice": "^0.16.1", "discord.js": "^14.14.1", "libsodium-wrappers": "^0.7.13", -- 2.46.2 From 4c291ac25ae08423acb06114516cf66a1aa31073 Mon Sep 17 00:00:00 2001 From: spy Date: Tue, 30 Jul 2024 16:43:37 -0400 Subject: [PATCH 2/2] Fix build error caused by line 114 Effectively make it ignore the nonexistent problem? idk --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9dd5832..a686f22 100644 --- a/src/index.ts +++ b/src/index.ts @@ -111,7 +111,7 @@ main(); function audioStream() { if (!audioprc) return; stream = new MemoryStream(); - audioprc.stdout.pipe(stream); + audioprc.stdout.pipe(stream as unknown as NodeJS.WritableStream); player.play(createAudioResource(stream, { inputType: StreamType.Raw, inlineVolume: false -- 2.46.2