mirror of
https://github.com/JonasunderscoreJones/ZtereoMUSIC.git
synced 2025-10-26 04:49:18 +01:00
Clean up static abuse, use traditional OOP style
This commit is contained in:
parent
a7a0e0fae6
commit
0fa9ceef8e
4 changed files with 51 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue