Bot cannot play music
I recently started a bot that play music, everything works just fine, no error, the bot is able to find the song and join the voice channel but no music is played.
The version i'm using is 14.12.1.
Here is my play.js:
DT
d.js toolkit•15d 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!68•15d ago
here is the output in discord server when i tried /play command
68•15d ago
list discord.js below and the node version i'm using is 20.12.2
68•15d ago
do you mind telling what TOS am I violating? it's my first time writing a bot, I really do not know
and how do I avoid violating this term?
I believe this is something with youtube?
L
lupus•15d ago
Playing music from YouTube is not allowed as per YouTube's terms.
68•15d ago
I see, so that is the reason why the bot cannot play music at all
L
lupus•15d ago
No, most likely not, but I can't help you in this server in because of the rules.
68•15d ago
what do you mean you can't help me in this server?
L
lupus•15d ago
As Qjuh said, there won't be any support for ToS violations even though it might be possible.
68•15d ago
I did not intend to violate ToS
if you know how to deal with this ToS violations, I will be very appreciate
most of the doc I saw online instructed me to write it like that and I didnt intend to violate any ToS
M
Mark•15d ago
You don't try to use YouTube or its API to play music. You use music sources that have support and allow streaming of its music via another program
Support server for discord.js, a Node.js module to interact with the Discord bot API.
58KMembers
View on DiscordWant results from more Discord servers?
More PostsThis interaction failed but components are workingI'm trying to create an interactive settings command by using interactable dropdown menus and buttoninteraction.channel is null in DMit works for servers, but not in direct message as 'user app'.
I already use as suggestions of otheDiscord cdn not working?I'm storing a link of an image attachment `...cdn.discordapp.com/attachments...` and the content is this isn’t really an error but more of a questionHow would you exactly use the presence to detect if a specific role has online members? as i am tryduplicate responsesSlash command Duplicate error!!i keep getting this error trying to refresh my slash cmds using the command deploy from discordjs.gucrash even if I have a trycatchThe bot crashes even if I put a trycatch(error).Trouble with collector and interactionsHere's the part of my code that's causing errors:
```javascript
async function handleListReactions(unknown interactionhello everyone
i have a ticket bot and when the admin want to close the ticket and press the button What are the exact differences between a Webhook and a Webhook client?I've read the page on the [discordjs.guide](https://discordjs.guide/popular-topics/webhooks.html#whaChecking if a user is mobiile```JS
client.on('messageCreate', async (message) => {
// Check if the user is online and has preSharding QuestionsHello,
As my bot is nearly reaching the 2k servers. I need to prepare it to sharding but I have soRepeating interactionIs there a way to use the 'interaction.update' multiple times? So i can make like one button after aWhat Discord.js features have the potential to hit the limit/go over the set Discord API limits?Where can I even find Discord's API limits? I just want to make sure that what I am doing with my boError when i do npm install discord.jsi don’t know how to fix this at all and i’m beyond confused i’ve tried so many times i am useing VisSimple question, how can I check if an incoming message is *specifically* a slash command?How can I check to see if an incoming message (messageCreate) is a slash command? Sometimes a typo cdiscord voice enginehello im just asking if someone got an alternative discord voice engine that work on windowsDeleting Ephemeral MessagesIs there any sort of way to reply to an interaction privately and then delete the reply?Button Automatically PressingHello! Im currently working on a bot using oauth2. Im in the middle of rewriting how i handle refresBot joins the vc but audio doesn't playyes the path is correct.
```js
var { voice } = message.member
if(!voice.channelId) return m