Fixed some bugs
This commit is contained in:
@@ -131,7 +131,7 @@ class Playlists(commands.Cog, name="playlist"):
|
||||
player = await voicelink.connect_channel(ctx)
|
||||
|
||||
if result['playlist']['type'] == 'link':
|
||||
tracks = await search_playlist(result['playlist']['uri'], ctx.author, timeNeed=False)
|
||||
tracks = await search_playlist(result['playlist']['uri'], ctx.author, time_needed=False)
|
||||
else:
|
||||
if not result['playlist']['tracks']:
|
||||
return await send(ctx, 'playlistNoTrack', result['playlist']['name'], ephemeral=True)
|
||||
@@ -443,7 +443,7 @@ class Playlists(commands.Cog, name="playlist"):
|
||||
return await send(ctx, 'playlistNotFound', name, ephemeral=True)
|
||||
|
||||
if result['playlist']['type'] == 'link':
|
||||
tracks = await search_playlist(result['playlist']['uri'], ctx.author, timeNeed=False)
|
||||
tracks = await search_playlist(result['playlist']['uri'], ctx.author, time_needed=False)
|
||||
else:
|
||||
if not result['playlist']['tracks']:
|
||||
return await send(ctx, 'playlistNoTrack', result['playlist']['name'], ephemeral=True)
|
||||
@@ -508,4 +508,4 @@ class Playlists(commands.Cog, name="playlist"):
|
||||
return await send(ctx, "decodeError", ephemeral=True)
|
||||
|
||||
async def setup(bot: commands.Bot) -> None:
|
||||
await bot.add_cog(Playlists(bot))
|
||||
await bot.add_cog(Playlists(bot))
|
||||
Reference in New Issue
Block a user