Browse Source

Use Queue instead of LifoQueue in LogsFromIterator.

That way you get the messages in newest to oldest rather than oldest
to newest.
pull/95/head
Rapptz 9 years ago
parent
commit
b64b89f484
  1. 2
      discord/iterators.py

2
discord/iterators.py

@ -39,7 +39,7 @@ class LogsFromIterator:
self.limit = limit
self.before = before
self.after = after
self.messages = asyncio.LifoQueue()
self.messages = asyncio.Queue()
@asyncio.coroutine
def fill_messages(self):

Loading…
Cancel
Save