Compare commits

...

2 commits

Author SHA1 Message Date
spy
4c291ac25a Fix build error caused by line 114
Effectively make it ignore the nonexistent problem? idk
2024-07-30 16:43:37 -04:00
spy
6eec4e6829 Replace @discordjs/opus with opusscript 0.1.1 2024-07-30 16:41:50 -04:00
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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