From 8e654bd52ad2fc8fb6e9ffecfbd50f2482a5f38d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 13 Feb 2017 19:54:55 -0500 Subject: Add support for limit=None in Messageable.history. Fixes #480. --- discord/abc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'discord/abc.py') 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. -- cgit v1.2.3