mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 00:07:51 +00:00
Removed unused variables in routes.
This commit is contained in:
parent
3504de4635
commit
8c581bc5bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user