Clean up static abuse, use traditional OOP style

This commit is contained in:
Reperak 2021-11-07 20:50:56 -06:00
parent a7a0e0fae6
commit 0fa9ceef8e
No known key found for this signature in database
GPG key ID: 12F30C9BA6950C0C
4 changed files with 51 additions and 35 deletions

View file

@ -43,7 +43,7 @@ public class Play implements Command {
VoiceChannel voiceChannel = author.getVoiceState().getChannel();
MessageChannel messageChannel = messageEvent.getChannel();
AudioManager manager = guild.getAudioManager();
AudioPlayerManager playerManager = Bot.playerManager;
AudioPlayerManager playerManager = Bot.getInstance().getPlayerManager();
// check if args merged are/have url, if so try to feed it into lava, else try to youtube api the fuck out of it.
String mergedArgs = String.join(" ", args);