Rename url to query

This commit is contained in:
ekzyis 2021-09-25 03:00:09 +02:00
parent b55b3a3f0d
commit 8ee2fc2682
1 changed files with 2 additions and 2 deletions

View File

@ -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')