mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Fix type annotations for purge's limit param on Thread/TextChannel
Optional was missing.
This commit is contained in:
parent
26e68b31ef
commit
834e23dc00
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user