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 toolkit6mo 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
Unjin6mo ago
Can anyone help me?
Unjin
Unjin6mo ago
VoiceConnection hasn't state property
No description
Unjin
Unjin6mo ago
And VoiseState hasn't subscription
No description
Unjin
Unjin6mo 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
Unjin6mo 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
Unjin6mo 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!