Closed officialLucas closed 3 years ago
sounds suspiciously like a case of #16. Do you have nothing in the error log?
Also provide your LP version.
PS: Codeblocks are surrounded by triple backticks ```
Hey I am using the Lavaplayer 1.3.55 version. There is no error in the console.
I've got the same issue
I would recommend combining VolumeCommand()
and getGuildAudioPlayer()
if you can
My examples are from Kotlin, but it should work the same - I didn't see a player or listeners, which is prob what's missing.
the DefaultAudioPlayerManager
is key here
you can set it to a variable, say:
val playerManager = DefaultAudioPlayerManager()
Then create your player using the variable
val guildAudioPlayer = playerManager.createPlayer()
Then add your listeners
guildAudioPlayer.addListener(AudioEventHandler(guild))
audioManager.sendingHandler = AudioPlayerSendHandler(guildAudioPlayer)
(I also add the sources here using the manager, and then save the player and manager to a map based on the guild)
To set the volume, you should then use the player
from the AudioPlayer
There is no error in the console.
I have conveniently made an FAQ section about what to do if there "are no errors": https://github.com/sedmelluq/lavaplayer/blob/master/FAQ.md#a7c7989f
Hey I am creating a Discord music bot with lavaplayer. I'm trying to do a volume command, but whenever I do it, the bot stops playing music. Can someone help?