Add support for limit=None in Messageable.history.

Fixes #480.
This commit is contained in:
Rapptz
2017-02-13 19:54:55 -05:00
parent b6bff5172a
commit 8e654bd52a
2 changed files with 33 additions and 11 deletions

View File

@ -748,8 +748,10 @@ class Messageable(metaclass=abc.ABCMeta):
Parameters
-----------
limit: int
limit: Optional[int]
The number of messages to retrieve.
If ``None``, retrieves every message in the channel. Note, however,
that this would make it a slow operation.
before: :class:`Message` or `datetime`
Retrieve messages before this date or message.
If a date is provided it must be a timezone-naive datetime representing UTC time.