Rename url to query
This commit is contained in:
parent
b55b3a3f0d
commit
8ee2fc2682
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue