Discord Voice doesn't play anything when join voice channel

My bot still work when I run bot in windows, but when I host it on vps (Ubuntu), it doesn't speak anything, it still slient "dependencies": { "@discordjs/opus": "^0.9.0", "@discordjs/rest": "^2.2.0", "@discordjs/voice": "^0.16.1", "axios": "^1.6.7", "canvas": "^2.11.2", "chalk": "4.1.2", "colors": "^1.4.0", "common-tags": "^1.8.2", "dayjs": "^1.11.10", "delay": "5.0.0", "discord-api-types": "^0.37.67", "discord-giveaways": "^6.0.1", "discord.js": "^14.14.1", "dotenv": "^16.3.2", "ffmpeg": "^0.0.4", "ffmpeg-static": "^5.2.0", "google-tts-api": "^2.0.2", "image-url-validator": "^1.0.4", "libsodium-wrappers": "^0.7.13", "mathjs": "^12.4.0", "mongoose": "^8.1.1", "node-os-utils": "^1.3.7", "node-schedule": "^2.1.1", "nodemon": "^3.0.3", "quickmongo": "^5.2.0", "random": "3.0.6", "sourcebin": "^5.0.0" },
5 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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!
d.js docs
d.js docs9mo ago
- npm: npm install ffmpeg-static - Install: Download | chocolatey | homebrew | your distributions package manager - Tutorial: YouTube - ffmpeg-binaries is deprecated, uninstall it with npm rm ffmpeg-binaries discord.js includes multiple sub-packages, installing these separately can mess with internal code:
npm uninstall discord-api-types @discordjs/rest @discordjs/builders
yarn remove discord-api-types @discordjs/rest @discordjs/builders
pnpm remove discord-api-types @discordjs/rest @discordjs/builders
npm uninstall discord-api-types @discordjs/rest @discordjs/builders
yarn remove discord-api-types @discordjs/rest @discordjs/builders
pnpm remove discord-api-types @discordjs/rest @discordjs/builders
Hu Ce
Hu CeOP9mo ago
I tried your way but it still doesn't speak
No description
Hu Ce
Hu CeOP9mo ago
i think that problem is due to udp i use digital ocean I try on windows or other vps it works normally my code https://sourceb.in/5nTTuoxmlT
Hu Ce
Hu CeOP9mo ago
No description
Want results from more Discord servers?
Add your server