Applying all the necessary commands to use the new add_track method

This commit is contained in:
Choco
2023-03-08 10:34:50 +08:00
parent ba290d2606
commit 4ddaba584b
4 changed files with 38 additions and 30 deletions

View File

@@ -149,9 +149,7 @@ class Playlists(commands.Cog, name="playlist"):
if value and 0 < value <= (len(tracks['tracks'])):
tracks['tracks'] = [tracks['tracks'][value - 1]]
for track in tracks['tracks']:
player.queue.put(track)
await player.add_track(tracks['tracks'])
await ctx.send(get_lang(ctx.guild.id, 'playlistPlay').format(result['playlist']['name'], len(tracks['tracks'][:max_t])))
if not player.is_playing: