Replies: 3 comments
-
Why are you manually creating track like that? Also it's not a bug, you need to specify from what source the track was created, like: const newTrack = new Track(client.player, {
"id": '892389134012907522',
"title": "I'm A Wanted Man (Official Audio) | Royal Deluxe [UFC 229 Teaser - McGregor vs. Khabib Placement]",
"author": 'Position Music',
"url": 'https://www.youtube.com/watch?v=YSAMOBVncSg',
"thumbnail": 'https://i3.ytimg.com/vi/YSAMOBVncSg/maxresdefault.jpg',
"duration": '3:50',
"views": 9685475,
"playlist": undefined,
"source": "youtube"
})
queue.addTrack(newTrack); |
Beta Was this translation helpful? Give feedback.
0 replies
-
and keep in mind, this is not a recommended way of doing it. You should rather use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the help. I wanted to save the tracks in this format in database and then use it to play cause I was trying to add a save playlists command. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I am trying to manually play the song by creating a track object and sending it to
queue.addTrack()
. This does trigger thetrackAdd
event and I get theAdded to queue
message, but doesnt play the song. This is the code I've usedSteps to reproduce the behavior:
Manually create a track and play it
Screenshots
Beta Was this translation helpful? Give feedback.
All reactions