From 8beabcc39a7ec107abaaef9b6e818a8be1b38a5a Mon Sep 17 00:00:00 2001 From: Steve C Date: Wed, 27 Feb 2019 16:40:32 -0500 Subject: [PATCH] Fix typing for Channel.purge's limit kwarg. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PyCharm was throwing a fit when I set it to None. 😒 --- discord/channel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/channel.py b/discord/channel.py index 06b1dbf82..ef4087c5d 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -238,7 +238,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): Parameters ----------- - limit: int + limit: Optional[int] The number of messages to search through. This is not the number of messages that will be deleted, though it can be. check: predicate