Browse Source

Revert "Remove unused group functionality"

This reverts commit d69b2f0af5.
pull/6664/head
Rapptz 4 years ago
parent
commit
1d5805ebcb
  1. 12
      discord/http.py

12
discord/http.py

@ -310,6 +310,18 @@ class HTTPClient:
def logout(self):
return self.request(Route('POST', '/auth/logout'))
# Group functionality
def start_group(self, user_id, recipients):
payload = {
'recipients': recipients,
}
return self.request(Route('POST', '/users/{user_id}/channels', user_id=user_id), json=payload)
def leave_group(self, channel_id):
return self.request(Route('DELETE', '/channels/{channel_id}', channel_id=channel_id))
# Message management
def start_private_message(self, user_id):

Loading…
Cancel
Save