From 8ee2fc2682003bf35973ae28563037457a3c7e7d Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 25 Sep 2021 03:00:09 +0200 Subject: [PATCH] Rename url to query --- src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot.py b/src/bot.py index 9026522..c43c21d 100644 --- a/src/bot.py +++ b/src/bot.py @@ -56,9 +56,9 @@ class Music(commands.Cog): await ctx.send(f"Now playing: {title}") @commands.command() - async def play(self, ctx, *, url): + async def play(self, ctx, *, query): async with ctx.typing(): - data = self._ytdl.extract_info(url, download=False) + data = self._ytdl.extract_info(query, download=False) if 'entries' in data: data = data['entries'][0] title = data.get('title')