Is it possible to modify the player?
I'm looking to add my own custom function for the
player.play();
function and was wondering it was possible to pass it as an option, or would I have to edit the code directly to include this change? If you're confused, a notable example would be as follows, this is current the Shoukaku Lavalink Wrapper which does allow you to pass in your own Rest Client or Player. This question would also apply to the Rest Client, since the current port of my bot loads information from Spotify instead of through Lavalink and passes it to the player.
1 Reply
Hello, well I'll make an example for you to put your function
In options when creating the class you use custom parameter
new MoonlinkManager(/nodes/, { custom: { player: NewPlayer } }, /spayload/)