Deprecate with_expiration param in fetch_invite

This commit is contained in:
Sacul
2025-08-12 15:18:24 +08:00
committed by GitHub
parent ec409a0a7b
commit 6ec2e5329b
5 changed files with 9 additions and 6 deletions

View File

@ -1864,12 +1864,10 @@ class HTTPClient:
invite_id: str,
*,
with_counts: bool = True,
with_expiration: bool = True,
guild_scheduled_event_id: Optional[Snowflake] = None,
) -> Response[invite.Invite]:
params: Dict[str, Any] = {
'with_counts': int(with_counts),
'with_expiration': int(with_expiration),
}
if guild_scheduled_event_id: