Add with_counts param to fetch_guilds

This commit is contained in:
Andrin S
2023-05-20 02:47:16 +02:00
committed by GitHub
parent 53ce05b0d0
commit 66689e16e8
3 changed files with 15 additions and 5 deletions

View File

@ -1373,9 +1373,11 @@ class HTTPClient:
limit: int,
before: Optional[Snowflake] = None,
after: Optional[Snowflake] = None,
with_counts: bool = True,
) -> Response[List[guild.Guild]]:
params: Dict[str, Any] = {
'limit': limit,
'with_counts': int(with_counts),
}
if before: