From 8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 9 Feb 2017 02:44:45 -0500 Subject: [PATCH] Removed unused variables in routes. --- discord/http.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/discord/http.py b/discord/http.py index e3e41e582..c8b685126 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