diff options
| author | Rapptz <[email protected]> | 2018-12-17 18:04:32 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-12-17 18:04:32 -0500 |
| commit | 648e62031df69222b08c284d03b0491f55b8e24a (patch) | |
| tree | 4cb882ef9f78f86cd95beee5ef1347bcfdba599e /discord/http.py | |
| parent | Fix some lingering attribute setting issues. (diff) | |
| download | discord.py-648e62031df69222b08c284d03b0491f55b8e24a.tar.xz discord.py-648e62031df69222b08c284d03b0491f55b8e24a.zip | |
Add support for explicit_content_filter in Guild.edit
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/discord/http.py b/discord/http.py index d2055093..d218ecca 100644 --- a/discord/http.py +++ b/discord/http.py @@ -565,7 +565,8 @@ class HTTPClient: def edit_guild(self, guild_id, *, reason=None, **fields): valid_keys = ('name', 'region', 'icon', 'afk_timeout', 'owner_id', 'afk_channel_id', 'splash', 'verification_level', - 'system_channel_id', 'default_message_notifications') + 'system_channel_id', 'default_message_notifications', + 'explicit_content_filter') payload = { k: v for k, v in fields.items() if k in valid_keys @@ -771,7 +772,7 @@ class HTTPClient: def get_mutual_friends(self, user_id): return self.request(Route('GET', '/users/{user_id}/relationships', user_id=user_id)) - + def change_hypesquad_house(self, house_id): payload = {'house_id': house_id} return self.request(Route('POST', '/hypesquad/online'), json=payload) |