Implement utilities for AsyncIterator.

Closes #473.
This commit is contained in:
Rapptz
2017-02-11 23:34:19 -05:00
parent 8727472b85
commit 2abdbc70c2
4 changed files with 181 additions and 52 deletions

View File

@ -740,7 +740,7 @@ class Messageable(metaclass=abc.ABCMeta):
return [state.create_message(channel=channel, data=m) for m in data]
def history(self, *, limit=100, before=None, after=None, around=None, reverse=None):
"""Return an async iterator that enables receiving the destination's message history.
"""Return an :class:`AsyncIterator` that enables receiving the destination's message history.
You must have Read Message History permissions to use this.