diff options
| author | Rapptz <[email protected]> | 2017-01-21 16:23:14 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-01-21 16:23:14 -0500 |
| commit | 1ffb2ca7ac3c2b7da2ad9878f90c1f653f1df1c2 (patch) | |
| tree | 31bc1affe5eba1c0b111688b2c27f60176cd74cb /discord/http.py | |
| parent | Update copyright year to 2017. (diff) | |
| download | discord.py-1ffb2ca7ac3c2b7da2ad9878f90c1f653f1df1c2.tar.xz discord.py-1ffb2ca7ac3c2b7da2ad9878f90c1f653f1df1c2.zip | |
Allow unique invites for Client.create_invite.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |