Getting this error when booting up the bot.

package.json:
{
"name": "someshit",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node .",
"test": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@discordjs/opus": "^0.9.0",
"chalk": "^4.1.2",
"discord.js": "^14.12.1",
"ffmpeg-static": "^5.2.0",
"fluent-ffmpeg": "^2.1.3",
"form-data": "^4.0.0",
"fs": "^0.0.1-security",
"glob": "^7.2.0",
"install": "^0.13.0",
"libsodium-wrappers": "^0.7.15",
"mongoose": "^6.2.0",
"ms": "^2.1.3",
"node-fetch": "^3.3.2",
"opusscript": "^0.0.8",
"prism-media": "^1.3.5",
"sodium": "^3.0.2",
"stream": "^0.0.3"
},
"devDependencies": {
"node": "^16.10.0"
}
}
{
"name": "someshit",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node .",
"test": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@discordjs/opus": "^0.9.0",
"chalk": "^4.1.2",
"discord.js": "^14.12.1",
"ffmpeg-static": "^5.2.0",
"fluent-ffmpeg": "^2.1.3",
"form-data": "^4.0.0",
"fs": "^0.0.1-security",
"glob": "^7.2.0",
"install": "^0.13.0",
"libsodium-wrappers": "^0.7.15",
"mongoose": "^6.2.0",
"ms": "^2.1.3",
"node-fetch": "^3.3.2",
"opusscript": "^0.0.8",
"prism-media": "^1.3.5",
"sodium": "^3.0.2",
"stream": "^0.0.3"
},
"devDependencies": {
"node": "^16.10.0"
}
}
No description
No description
12 Replies
d.js toolkit
d.js toolkit3mo ago
- What are your intents? GuildVoiceStates is required to receive voice data! - Show what dependencies you are using -- generateDependencyReport() is exported from @discordjs/voice. - Try looking at common examples: https://github.com/discordjs/voice-examples. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
ChopChop
ChopChopOP3mo ago
No description
ChopChop
ChopChopOP3mo ago
Whole error:
No description
pat
pat3mo ago
remove node modules and reinstall deps
ChopChop
ChopChopOP3mo ago
did mulitple times, its still giving the same error. i am using prism-media right now as decoder but the recorded voice is bassy
pat
pat3mo ago
prism media internally uses opus
ChopChop
ChopChopOP3mo ago
yea, but the output is not the original voice. thats why was trying to switch to a different decoder
𖦹𖥦𖦹
𖦹𖥦𖦹3mo ago
error in the image indicates that Node.js application is unable to find the @discordjs/opus module. likely due to a missing or incorrectly installed dependency. :HmmShrug: you could try runing npm install @discordjs/opus to make sure its installed corectly also make sure you are using a compatible version of Node.js (error mentions node-v115, which corresponds to Node.js 16.x.) check current with node -v if needed update sometimes rebuilding dependencies can help :HmmShrug: npm rebuild since its having issues finding the module you should prob also check the opus.node file exist? if its not there run npm uninstall @discordjs/opus npm install @discordjs/opus or just use a whole ass different module npm install opusscript :kek:
ChopChop
ChopChopOP3mo ago
I am using 20.11.1, Its not compatible?
ChopChop
ChopChopOP3mo ago
this is the difference in audio, using prism-media as decoder first is the output of bot and 2nd is a normal voice message @𖦹𖥦𖦹 @pat sorry for ping, any idea why this is happening? bump
Retro
Retro3mo ago
Try npm rebuild
Want results from more Discord servers?
Add your server