aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py
index 3bf13425..0eb48124 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -975,9 +975,10 @@ class HTTPClient:
return self.request(r, reason=reason, json=payload)
- def get_invite(self, invite_id, *, with_counts=True):
+ def get_invite(self, invite_id, *, with_counts=True, with_expiration=True):
params = {
'with_counts': int(with_counts),
+ 'with_expiration': int(with_expiration),
}
return self.request(Route('GET', '/invites/{invite_id}', invite_id=invite_id), params=params)