aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-09 02:44:45 -0500
committerRapptz <[email protected]>2017-02-09 02:44:45 -0500
commit8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d (patch)
tree75e014871fa47bb6d7566a42ba5122affea5094b
parentFix more places where server is used instead of guild in docstrings. (diff)
downloaddiscord.py-8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d.tar.xz
discord.py-8c581bc5bdf2f0aa3fea54ff8e7afad7923a024d.zip
Removed unused variables in routes.
-rw-r--r--discord/http.py3
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