mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-03 18:42:43 +00:00
Fix typing errors in Guild.audit_logs
This commit is contained in:
parent
f2600995e8
commit
c406951532
@ -2759,10 +2759,10 @@ class Guild(Hashable):
|
||||
async def audit_logs(
|
||||
self,
|
||||
*,
|
||||
limit: int = 100,
|
||||
before: Optional[SnowflakeTime] = None,
|
||||
after: Optional[SnowflakeTime] = None,
|
||||
oldest_first: Optional[bool] = None,
|
||||
limit: Optional[int] = 100,
|
||||
before: SnowflakeTime = MISSING,
|
||||
after: SnowflakeTime = MISSING,
|
||||
oldest_first: bool = MISSING,
|
||||
user: Snowflake = MISSING,
|
||||
action: AuditLogAction = MISSING,
|
||||
) -> AsyncIterator[AuditLogEntry]:
|
||||
@ -2853,7 +2853,7 @@ class Guild(Hashable):
|
||||
|
||||
return data.get('users', []), entries, after, limit
|
||||
|
||||
if user is not None:
|
||||
if user is not MISSING:
|
||||
user_id = user.id
|
||||
else:
|
||||
user_id = None
|
||||
@ -2866,7 +2866,7 @@ class Guild(Hashable):
|
||||
if isinstance(after, datetime.datetime):
|
||||
after = Object(id=utils.time_snowflake(after, high=True))
|
||||
|
||||
if oldest_first is None:
|
||||
if oldest_first is MISSING:
|
||||
reverse = after is not None
|
||||
else:
|
||||
reverse = oldest_first
|
||||
|
Loading…
x
Reference in New Issue
Block a user