I am trying to use the npm of distube since the lavalink was not working for me and before distube does work, the problem is that the file where the distube client is defined I pass it to load it to the index and I make a console.log(client.distube) and if it detects it but when using it in a command it comes out as undefined and I already tried to do everything and nothing, If anyone can help me with this, I appreciate it, whether it's Lavalink or Distube, to help me
Solution
@Skyra used to have lavalink with sapphire long long ago but you can go back in the commit history to find it eventually.
That said assuming you're gonna be playing from YouTube keep in mind that doing so is against the YouTube and by extension Discord's terms of service and can lead to your bot being terminated. Having music functionality will certainly give you a very low chance to get your bot verified. Also in regards to YouTube, people can already use voice channel activities to listen together.