diff options
| author | Rapptz <[email protected]> | 2017-07-18 16:36:26 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-07-18 16:36:26 -0400 |
| commit | 6e0902ef57a5d1d4afb7581f2188e8b9e25c457d (patch) | |
| tree | 78d8406e523111c677e3c30a4479958a6e8b92c5 /discord/http.py | |
| parent | Don't re-raise in Client.connect if it's a clean close code. (diff) | |
| download | discord.py-6e0902ef57a5d1d4afb7581f2188e8b9e25c457d.tar.xz discord.py-6e0902ef57a5d1d4afb7581f2188e8b9e25c457d.zip | |
Implement new-style NSFW channels.
No idea how these will change in the future but this is barebones
enough for now.
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py index 41bc2565..e59ea0e2 100644 --- a/discord/http.py +++ b/discord/http.py @@ -489,7 +489,7 @@ class HTTPClient: def edit_channel(self, channel_id, *, reason=None, **options): r = Route('PATCH', '/channels/{channel_id}', channel_id=channel_id) - valid_keys = ('name', 'topic', 'bitrate', 'user_limit', 'position') + valid_keys = ('name', 'topic', 'bitrate', 'nsfw', 'user_limit', 'position') payload = { k: v for k, v in options.items() if k in valid_keys } |