diff options
| author | Steve C <[email protected]> | 2021-07-21 02:44:27 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-21 02:44:27 -0400 |
| commit | 834e23dc003d950196d085eb92a81f36e43b067f (patch) | |
| tree | 49c33a7a7c26016d85a7141105a0aa85ef82cf75 | |
| parent | [commands] fix incorrect typings in ThreadConverter (diff) | |
| download | discord.py-834e23dc003d950196d085eb92a81f36e43b067f.tar.xz discord.py-834e23dc003d950196d085eb92a81f36e43b067f.zip | |
Fix type annotations for purge's limit param on Thread/TextChannel
Optional was missing.
| -rw-r--r-- | discord/channel.py | 2 | ||||
| -rw-r--r-- | discord/threads.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/discord/channel.py b/discord/channel.py index 18c26fdf..f2465392 100644 --- a/discord/channel.py +++ b/discord/channel.py @@ -372,7 +372,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): async def purge( self, *, - limit: int = 100, + limit: Optional[int] = 100, check: Callable[[Message], bool] = MISSING, before: Optional[SnowflakeTime] = None, after: Optional[SnowflakeTime] = None, diff --git a/discord/threads.py b/discord/threads.py index daf7e518..d1a89d83 100644 --- a/discord/threads.py +++ b/discord/threads.py @@ -366,7 +366,7 @@ class Thread(Messageable, Hashable): async def purge( self, *, - limit: int = 100, + limit: Optional[int] = 100, check: Callable[[Message], bool] = MISSING, before: Optional[SnowflakeTime] = None, after: Optional[SnowflakeTime] = None, |