mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
Switch URLs from Client.delete_server and Client.leave_server.
This commit is contained in:
parent
87f7fced24
commit
489363f5f8
@ -1700,7 +1700,7 @@ class Client:
|
||||
If leaving the server failed.
|
||||
"""
|
||||
|
||||
url = '{0}/{1.id}'.format(endpoints.SERVERS, server)
|
||||
url = '{}/@me/guilds/{.id}'.format(endpoints.USERS, server)
|
||||
response = yield from self.session.delete(url, headers=self.headers)
|
||||
log.debug(request_logging_format.format(method='DELETE', response=response))
|
||||
yield from utils._verify_successful_response(response)
|
||||
@ -1726,7 +1726,7 @@ class Client:
|
||||
You do not have permissions to delete the server.
|
||||
"""
|
||||
|
||||
url = '{}/@me/guilds/{.id}'.format(endpoints.USERS, server)
|
||||
url = '{0}/{1.id}'.format(endpoints.SERVERS, server)
|
||||
response = yield from self.session.delete(url, headers=self.headers)
|
||||
log.debug(request_logging_format.format(method='DELETE', response=response))
|
||||
yield from utils._verify_successful_response(response)
|
||||
|
Loading…
x
Reference in New Issue
Block a user