Error with createAudioResource()

hey, i would like some help for my discord bot, i have been trying to code music command to play music in voice channels, but i am encountering an issue, and its been 11 hours since i have been trying to fix it
17 Replies
d.js toolkit
d.js toolkit3w ago
- 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 staff
treble/luna
treble/luna3w ago
#how-to-get-help, share your code
$
$OP3w ago
wait since i dont have nitro i will share it in a message.txt file, my message exceeds the character limit set by discord
d.js docs
d.js docs3w ago
To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.
$
$OP3w ago
$
$OP3w ago
@treble/luna here you can expand it
treble/luna
treble/luna3w ago
use a pastebin but i can already see by the first line you are violating TOS by using play-dl so we will not provide support for that
$
$OP3w ago
eh no?
treble/luna
treble/luna3w ago
No anything using youtube is against its TOS
$
$OP3w ago
No description
$
$OP3w ago
this bot uses it and is verified
treble/luna
treble/luna3w ago
cool, but its against TOS theres a reason why the large music bots shut down
$
$OP3w ago
then what should i use @treble/luna my brain has been fried by the errors 'play-dl' gave
treble/luna
treble/luna3w ago
something thats TOS compliant aka audio you have the rights to use on
$
$OP3w ago
so you wont help?
treble/luna
treble/luna3w ago
nope
$
$OP3w ago
okay

Did you find this page helpful?