new: say what song got removed

This commit is contained in:
ZtereoHYPE 2022-01-09 18:11:15 +01:00
parent 511ad4b8e6
commit b6f06e729d
2 changed files with 5 additions and 3 deletions

View file

@ -43,8 +43,10 @@ public class TrackManager extends AudioEventAdapter {
} }
} }
public void removeQueueItem(int index) { public String removeQueueItem(int index) {
String title = trackQueue.get(index).getInfo().title;
trackQueue.remove(index); trackQueue.remove(index);
return title;
} }
public void pause() { public void pause() {

View file

@ -72,8 +72,8 @@ public class Remove implements Command {
return; return;
} }
trackManager.removeQueueItem(parsedIndex - 1); String title = trackManager.removeQueueItem(parsedIndex - 1);
messageChannel.sendMessage("Removed the song.").queue(); messageChannel.sendMessage("Removed " + title).queue();
} }
public static boolean isNumeric(String strNum) { public static boolean isNumeric(String strNum) {