From 4ec72135063f0f200f3b7250504eee8bd83c2f02 Mon Sep 17 00:00:00 2001 From: CapnS Date: Thu, 21 Mar 2019 12:57:54 -0500 Subject: Added functionality to edit user settings Changing docs to fit other parts of the lib Co-Authored-By: CapnS <38225872+CapnS@users.noreply.github.com> Removing Type Checking Made all of Rapptz's suggested changes Removing imports that are no longer needed --- discord/http.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'discord/http.py') diff --git a/discord/http.py b/discord/http.py index dc61a74c..b103a7ef 100644 --- a/discord/http.py +++ b/discord/http.py @@ -809,3 +809,6 @@ class HTTPClient: def leave_hypesquad_house(self): return self.request(Route('DELETE', '/hypesquad/online')) + + def edit_settings(self, **payload): + return self.request(Route('PATCH', '/users/@me/settings'), json=payload) -- cgit v1.2.3