use of net.dv8tion.jda.api.managers.AudioManager in project radio by toadless.
the class GuildMusicManager method leave.
public void leave(@NotNull Guild guild) {
AudioManager manager = guild.getAudioManager();
manager.closeAudioConnection();
}
use of net.dv8tion.jda.api.managers.AudioManager in project radio by toadless.
the class GuildMusicManager method playAll.
public void playAll(VoiceChannel channel, List<AudioTrack> tracks, User user) {
AudioManager manager = channel.getGuild().getAudioManager();
manager.openAudioConnection(channel);
tracks.forEach(track -> scheduler.queue(track, user));
player.setVolume(volume);
}
use of net.dv8tion.jda.api.managers.AudioManager in project radio by toadless.
the class GuildMusicManager method play.
public void play(VoiceChannel channel, AudioTrack track, User user) {
AudioManager manager = channel.getGuild().getAudioManager();
manager.openAudioConnection(channel);
scheduler.queue(track, user);
player.setVolume(volume);
}
Aggregations