Skip to content

Commit d92a5fb

Browse files
authored
Make guild.audit_logs(limit) parameter optional
As written in the docs below the command: limit: Optional[`int`] The number of entries to retrieve. If ``None`` retrieve all entries. So the parameter should be Optional. Currently my IME returns the error `Expected type 'int', got 'None' instead `
1 parent af4a096 commit d92a5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2735,7 +2735,7 @@ async def vanity_invite(self) -> Optional[Invite]:
27352735
def audit_logs(
27362736
self,
27372737
*,
2738-
limit: int = 100,
2738+
limit: Optional[int] = 100,
27392739
before: Optional[SnowflakeTime] = None,
27402740
after: Optional[SnowflakeTime] = None,
27412741
oldest_first: Optional[bool] = None,

0 commit comments

Comments
 (0)