aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-21 16:19:53 -0500
committerRapptz <[email protected]>2017-01-21 16:19:53 -0500
commite9a09539beaed0f1c15f860cf5bc9e7da3a8efe9 (patch)
tree1b32d6c4117099e249c0982ff849409de8639f3e /discord/http.py
parentFix issue with chunking on userbots when a guild is unavailable. (diff)
downloaddiscord.py-e9a09539beaed0f1c15f860cf5bc9e7da3a8efe9.tar.xz
discord.py-e9a09539beaed0f1c15f860cf5bc9e7da3a8efe9.zip
Allow unique invites to be created in Client.create_invite.
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 3bed652e..f55d43a6 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -561,7 +561,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)