diff options
| author | Rapptz <[email protected]> | 2017-02-09 02:44:45 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-02-09 02:44:45 -0500 |
| commit | 8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d (patch) | |
| tree | 75e014871fa47bb6d7566a42ba5122affea5094b | |
| parent | Fix more places where server is used instead of guild in docstrings. (diff) | |
| download | discord.py-8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d.tar.xz discord.py-8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d.zip | |
Removed unused variables in routes.
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/discord/http.py b/discord/http.py index e3e41e58..c8b68512 100644 --- a/discord/http.py +++ b/discord/http.py @@ -341,7 +341,6 @@ class HTTPClient: return self.request(r) def logs_from(self, channel_id, limit, before=None, after=None, around=None): - url = '{0.CHANNELS}/{1}/messages'.format(self, channel_id) params = { 'limit': limit } @@ -429,8 +428,6 @@ class HTTPClient: # Channel management def edit_channel(self, channel_id, **options): - url = '{0.CHANNELS}/{1}'.format(self, channel_id) - valid_keys = ('name', 'topic', 'bitrate', 'user_limit', 'position') payload = { k: v for k, v in options.items() if k in valid_keys |