diff options
Diffstat (limited to 'discord')
| -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, |