diff options
| author | MhmCats <[email protected]> | 2021-06-02 07:39:08 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-02 02:39:08 -0400 |
| commit | 08470856614697e50419928ce6e24fb6291d95e9 (patch) | |
| tree | 9ece1810b8b1e4d8d32ab1f20319bbadcb046ed0 /discord/http.py | |
| parent | Typehint audit_logs.py (diff) | |
| download | discord.py-08470856614697e50419928ce6e24fb6291d95e9.tar.xz discord.py-08470856614697e50419928ce6e24fb6291d95e9.zip | |
Add support for editing guild widgets
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/http.py b/discord/http.py index 4dfea5da..9a9b8516 100644 --- a/discord/http.py +++ b/discord/http.py @@ -971,6 +971,9 @@ class HTTPClient: def get_widget(self, guild_id): return self.request(Route('GET', '/guilds/{guild_id}/widget.json', guild_id=guild_id)) + + def edit_widget(self, guild_id, payload): + return self.request(Route('PATCH', '/guilds/{guild_id}/widget', guild_id=guild_id), json=payload) # Invite management |