Implement utilities for AsyncIterator.

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

No files matched your search

+1 -1
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.