diff options
| author | Rapptz <[email protected]> | 2017-02-13 19:54:55 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-13 19:55:04 -0500 |
| commit | 8e654bd52ad2fc8fb6e9ffecfbd50f2482a5f38d (patch) | |
| tree | 52786cb7e7e6da4175296b7d8353f695b11d17b0 /discord/abc.py | |
| parent | [commands] Remove Commands: if no commands can be run in help command. (diff) | |
| download | discord.py-8e654bd52ad2fc8fb6e9ffecfbd50f2482a5f38d.tar.xz discord.py-8e654bd52ad2fc8fb6e9ffecfbd50f2482a5f38d.zip | |
Add support for limit=None in Messageable.history.
Fixes #480.
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 0398da6f..0b5d9729 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -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. |