From 152afe4813b12069afe7b20dbdb549b280eb5e66 Mon Sep 17 00:00:00 2001 From: Nekojimi Date: Mon, 20 Jun 2022 17:14:35 +0100 Subject: [PATCH] Update play command. --- src/main/java/moe/nekojimi/chords/commands/PlayCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/moe/nekojimi/chords/commands/PlayCommand.java b/src/main/java/moe/nekojimi/chords/commands/PlayCommand.java index e5a6a49..d74d0e5 100644 --- a/src/main/java/moe/nekojimi/chords/commands/PlayCommand.java +++ b/src/main/java/moe/nekojimi/chords/commands/PlayCommand.java @@ -51,7 +51,7 @@ public class PlayCommand extends Command { final URL url = new URL(invocation.getArgs().get(0)); request.setUrl(url); - bot.queueDownload(request); + bot.queueDownload(request, bot.getQueueManager()); } catch (MalformedURLException mux) { @@ -103,7 +103,7 @@ public class PlayCommand extends Command if (results.get(0).getScore() >= SEARCH_SCORE_THRESHOLD_AUTOPLAY) { request.setResult(results.get(0)); - bot.queueDownload(request); + bot.queueDownload(request, bot.getQueueManager()); return; }