diff options
| author | ReinaSakuraba <[email protected]> | 2017-10-04 21:27:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-04 21:27:31 -0700 |
| commit | d53cada91ecad0758c57fa41e4cb1ee45ac30974 (patch) | |
| tree | 206ece796595230656807dd4f5289223c644517b | |
| parent | [commands] Split Cooldown state processing to two different functions. (diff) | |
| download | discord.py-d53cada91ecad0758c57fa41e4cb1ee45ac30974.tar.xz discord.py-d53cada91ecad0758c57fa41e4cb1ee45ac30974.zip | |
Fix TypeError in utils.oauth_url
| -rw-r--r-- | discord/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index 66c235bb..ee612ecc 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -112,7 +112,7 @@ def oauth_url(client_id, permissions=None, guild=None, redirect_uri=None): if permissions is not None: url = url + '&permissions=' + str(permissions.value) if guild is not None: - url = url + "&guild_id=" + guild.id + url = url + "&guild_id=" + str(guild.id) if redirect_uri is not None: from urllib.parse import urlencode url = url + "&response_type=code&" + urlencode({'redirect_uri': redirect_uri}) |