diff options
| author | Steve C <[email protected]> | 2019-02-27 16:40:32 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-02-27 16:40:32 -0500 |
| commit | 8beabcc39a7ec107abaaef9b6e818a8be1b38a5a (patch) | |
| tree | 461a414fb76fca671b84431fb348ef2ac477f278 | |
| parent | Prepare fix for aiohttp 4.0 breaking change with session creation. (diff) | |
| download | discord.py-8beabcc39a7ec107abaaef9b6e818a8be1b38a5a.tar.xz discord.py-8beabcc39a7ec107abaaef9b6e818a8be1b38a5a.zip | |
Fix typing for Channel.purge's limit kwarg.
PyCharm was throwing a fit when I set it to None. 😒
| -rw-r--r-- | discord/channel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/channel.py b/discord/channel.py index 06b1dbf8..ef4087c5 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 |