lavender!
lavender!
Explore posts from servers
SIASapphire - Imagine a framework
Created by lavender! on 5/22/2024 in #sapphire-support
@sapphire/type Issues
No description
30 replies
MIA🎶 Moonlink.js - Imagine a Music Application
Created by exotic-emerald on 5/28/2023 in #help
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.
class SpotifyPlayer extends Player {
async playTrack() {
// code here
return super.playTrack(playable)
}
class SpotifyPlayer extends Player {
async playTrack() {
// code here
return super.playTrack(playable)
}
5 replies