bot joins voice channel but doesn't play the resource

Hello, I've been trying to create a bot on Discord. I want it so that when you send a rose 🌹 or a thunderbolt ⚔, the bot connects and plays NPC sounds that people make. However, my bot, or rather the audio, isn't working well. When I'm in the voice channel and send messages, it connects, but no sound is heard or played.
I've read the docs but I'm unable to make the bot play a sound
I share the repo if anyone could take a look at it I'd be more than grateful, I'm working with deno and latest discord js voice package
GitHub
A discord bot that reproduces a friend audio like npc tiktok videos - GitHub - Leviakc/npc_bot: A discord bot that reproduces a friend audio like npc tiktok videos
GitHub - Leviakc/npc_bot: A discord bot that reproduces a friend au...
Was this page helpful?