mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-10 18:09:03 +00:00
Use kwargs if the number of arguments needed is too many.
This commit is contained in:
1 parent
5f69fe9b07
commit
b00ad4ad79
4 files changed
+39
-30
No files matched your search
@@ -683,3 +683,12 @@ class Client(object):
|
||||
|
||||
url = '{0}/{1.id}'.format(endpoints.CHANNELS, channel)
|
||||
requests.delete(url, headers=self.headers)
|
||||
|
||||
def leave_server(self, server):
|
||||
"""Leaves a :class:`Server`.
|
||||
|
||||
:param server: The :class:`Server` to leave.
|
||||
"""
|
||||
|
||||
url = '{0}/{1.id}'.format(endpoints.SERVERS, server)
|
||||
requests.delete(url, headers=self.headers)
|
||||
Reference in new issue
Block a user