From 1ffb2ca7ac3c2b7da2ad9878f90c1f653f1df1c2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 21 Jan 2017 16:23:14 -0500 Subject: Allow unique invites for Client.create_invite. --- discord/http.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discord/http.py') diff --git a/discord/http.py b/discord/http.py index c1cbd4f2..42cf14e5 100644 --- a/discord/http.py +++ b/discord/http.py @@ -544,7 +544,8 @@ class HTTPClient: payload = { 'max_age': options.get('max_age', 0), 'max_uses': options.get('max_uses', 0), - 'temporary': options.get('temporary', False) + 'temporary': options.get('temporary', False), + 'unique': options.get('unique', True) } return self.request(r, json=payload) -- cgit v1.2.3