Closed yu4L closed 2 years ago
May I know what queue.songs
is? If it isn't an instance of Song
from genius-lyrics
package, it's not going to work.
Edit: Checked distube
's docs and it isn't.
Solution: Get the title -> Use it to search -> Get the lyrics.
This issue isn't something wrong with the package. Please read the full example to know how it actually works. Closing this.
This is what I did now, which is still throwing the same error:
const track = queue.songs[0];
const tracklyrics = track.name;
const lyrics = await tracklyrics.lyrics();
I am following the example in the README, although while using it in my code, my console says that
tracklyrics.lyrics
is not a function. I am trying to make a command in Discord.js with it so whenever my bot plays a song, the users can get the lyrics of the current song that is playing.This is how I am using the package: