1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Return the future as well as the result, so that we can check the result of the future (that mouthful...)

This commit is contained in:
phxntxm 2017-06-27 17:57:55 -05:00
parent 7d66f3702f
commit 7983c07a12

View file

@ -45,7 +45,8 @@ class DJ(Playlist):
else:
entry = self.entries[0]
self.entries.rotate(-1)
return await entry.get_ready_future()
fut = entry.get_ready_future()
return fut, await fut
async def resolve_playlist(self):
self.playlists = self.bot.db.load('user_playlists', key=self.member.id, pluck='playlists') or []