Skip to content

Commit

Permalink
fix(http): intify with_counts when making request
Browse files Browse the repository at this point in the history
  • Loading branch information
spifory committed Aug 15, 2023
1 parent d322da3 commit 244899b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextcord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ def get_guilds(
after: Optional[Snowflake] = None,
with_counts: bool = False,
) -> Response[List[guild.Guild]]:
params: Dict[str, Any] = {"limit": limit, "with_counts": with_counts}
params: Dict[str, Any] = {"limit": limit, "with_counts": int(with_counts)}

if before:
params["before"] = before
Expand Down

0 comments on commit 244899b

Please sign in to comment.