mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Propagate event loop in Messageable.history.
This commit is contained in:
parent
7e2c016eaa
commit
0e0b569d53
@ -92,7 +92,10 @@ class LogsFromIterator:
|
||||
self.reverse = reverse
|
||||
|
||||
self._filter = None # message dict -> bool
|
||||
self.messages = asyncio.Queue()
|
||||
|
||||
self.state = self.messageable._state
|
||||
self.logs_from = self.state.http.logs_from
|
||||
self.messages = asyncio.Queue(loop=self.state.loop)
|
||||
|
||||
if self.around:
|
||||
if self.limit > 101:
|
||||
@ -137,8 +140,6 @@ class LogsFromIterator:
|
||||
# do the required set up
|
||||
channel = yield from self.messageable._get_channel()
|
||||
self.channel = channel
|
||||
self.state = channel._state
|
||||
self.logs_from = channel._state.http.logs_from
|
||||
|
||||
if self.limit > 0:
|
||||
retrieve = self.limit if self.limit <= 100 else 100
|
||||
|
Loading…
x
Reference in New Issue
Block a user