1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Add the position in the queue to the embed

This commit is contained in:
Phxntxm 2017-08-06 16:16:43 -05:00
parent 43fe8c3a67
commit acc402297b

View file

@ -113,6 +113,7 @@ class YoutubeDLSource(discord.FFmpegPCMAudio):
# Fill in the simple things
embed.add_field(name='Title', value=self.title, inline=False)
embed.add_field(name='Requester', value=self.requester.display_name, inline=False)
embed.add_field(name='Place in Queue', value=str(self.playlist.count))
if self.thumbnail:
embed.set_thumbnail(url=self.thumbnail)
# Get the current length of the song and display this