From b69ffe0a0c6a93746f0c0671685ecdeb4eda5681 Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 1 Feb 2022 16:57:15 -0600 Subject: [PATCH] Fix play --- commands/music/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/music/play.js b/commands/music/play.js index 01c76f7..7740238 100644 --- a/commands/music/play.js +++ b/commands/music/play.js @@ -16,7 +16,7 @@ class PlayCommand extends MusicCommand { const url = new URL(query); return await play(this.client, url, this.message, true); } catch { - const search = searchRegex.startsWith("ytsearch:") ? query : !this.args[0] && attachment ? attachment.url : `ytsearch:${query}`; + const search = query.startsWith("ytsearch:") ? query : !this.args[0] && attachment ? attachment.url : `ytsearch:${query}`; return await play(this.client, search, this.message, true); } }