enligh
DIAdiscord.js - Imagine an app
•Created by enligh on 7/22/2023 in #djs-voice
Bot not automatically leaving the voice channel even after the user leaves
I have this code where the bot joins a voice channel where the user joins and starts playing audio from the mp3 url. Now I want the bot to automatically leave the voice channel after all the users left that voice channel and only bot is there. I have this code linked down below which is suppose to do that but I am not sure why its not working. Can anyone please help me on this. TIA
Discord.js v13
code: https://srcb.in/1J5dEvYvah
1 replies
DIAdiscord.js - Imagine an app
•Created by enligh on 7/21/2023 in #djs-voice
Discord bot not playing song from an custom mp3 api url
I have this code for the command where the bot suppose to play the audio from the mp3 url which is: https://api.onlyhit.us/play
Here is code for the command: https://srcb.in/udqj0lkpDd
Currently what happens the bot joins the voice channel and keeps himself defan and doesnot play anything.
Can anyone please tell me how can I fix this issue? Thanks in Advance
Discord.js: v13.15.1
23 replies