Package de.presti.ree6.audio.music
Class GuildMusicManager
java.lang.Object
de.presti.ree6.audio.music.GuildMusicManager
Holder for both the player and a track scheduler for one guild.
-
Constructor Summary
ConstructorDescriptionGuildMusicManager
(net.dv8tion.jda.api.entities.Guild guild, com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager manager) Creates a player and a track scheduler. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the Audio-Player is playing any Music!
-
Constructor Details
-
GuildMusicManager
public GuildMusicManager(net.dv8tion.jda.api.entities.Guild guild, com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager manager) Creates a player and a track scheduler.- Parameters:
guild
- The Guild of the Music-Manager.manager
- Audio player manager to use for creating the player.
-
-
Method Details
-
isMusicPlaying
public boolean isMusicPlaying()Check if the Audio-Player is playing any Music!- Returns:
- true, if yes.
-
getSendHandler
- Returns:
- Wrapper around AudioPlayer to use it as an AudioSendHandler.
-