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:
parent
7d66f3702f
commit
7983c07a12
|
@ -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 []
|
||||
|
|
Loading…
Reference in a new issue