diff options
| author | Rapptz <[email protected]> | 2015-10-20 15:59:45 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-10-20 15:59:45 -0400 |
| commit | 77253d7717d074d3d7a6bf379de15feae0a7c119 (patch) | |
| tree | 8376ab734489699fe15f1b24ceeb0e9576a719d9 | |
| parent | Change default limit for Client.logs_from to 100. (diff) | |
| download | discord.py-77253d7717d074d3d7a6bf379de15feae0a7c119.tar.xz discord.py-77253d7717d074d3d7a6bf379de15feae0a7c119.zip | |
Fix Client.create_invite invalid method call issue.
| -rw-r--r-- | discord/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/client.py b/discord/client.py index c034faff..7817c0c1 100644 --- a/discord/client.py +++ b/discord/client.py @@ -1001,7 +1001,7 @@ class Client(object): if is_response_successful(response): data = response.json() log.debug(request_success_log.format(name='create_invite', json=payload, response=response, data=data)) - data['server'] = self._get_server(data['guild']['id']) + data['server'] = self.connection._get_server(data['guild']['id']) channel_id = data['channel']['id'] data['channel'] = utils.find(lambda ch: ch.id == channel_id, data['server'].channels) return Invite(**data) |