Bot connect but doesnt play anything
These are my dependences:
Core Dependencies
- @discordjs/voice: 0.18.0
- prism-media: 1.3.5
Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: 0.0.8
Encryption Libraries
- sodium-native: 4.3.1
- sodium: not found
- libsodium-wrappers: not found
- @stablelib/xchacha20poly1305: not found
- @noble/ciphers: not found
FFmpeg
- version: 2024-07-24-git-896c22ef00-full_build-www.gyan.dev
- libopus: yes
4 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!
- ✅
Marked as resolved by OPthis is my code:
I’m surprised it even connects
Channel.type is a number, which isn’t comparable to a string (always unequal)
so apparently the bot works well on my pc but in my windows vps it doesnt play anything
ye Im not, but the bot works on my pc also in v13, I literally copyied and pasted it in my vps (with the same ffmpeg and node version) but it doesnt play anything
if I kick the bot from the voice channel I get this error: