Getting this error when booting up the bot.
package.json:
12 Replies
- 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!Whole error:
remove node modules and reinstall deps
did mulitple times, its still giving the same error.
i am using prism-media right now as decoder but the recorded voice is bassy
prism media internally uses opus
yea, but the output is not the original voice.
thats why was trying to switch to a different decoder
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:I am using 20.11.1, Its not compatible?
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
Try
npm rebuild