Find an active audio resource on current guild?

Hello, how do I find an active audio resource on current guild? If there can only be one audio resource on the guild, then you can get it, right? But how?
7 Replies
d.js toolkit
d.js toolkit12mo 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! - Marked as resolved by OP
Unjin
UnjinOP12mo ago
Can anyone help me?
Unjin
UnjinOP12mo ago
VoiceConnection hasn't state property
No description
Unjin
UnjinOP12mo ago
And VoiseState hasn't subscription
No description
Unjin
UnjinOP12mo ago
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Unjin
UnjinOP12mo ago
discord.js
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
Unjin
UnjinOP12mo ago
wtf, it works but I do this
getVoiceConnection(interaction.guildId).state.subscription.player._state.resource
getVoiceConnection(interaction.guildId).state.subscription.player._state.resource
Why there are not fully docs? Thank you!
Want results from more Discord servers?
Add your server