mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Fix type annotations for purge's limit param on Thread/TextChannel
Optional was missing.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user