Implement new-style NSFW channels.

No idea how these will change in the future but this is barebones
enough for now.
This commit is contained in:
Rapptz
2017-07-18 16:36:26 -04:00
parent 2e57fa6dfd
commit 6e0902ef57
2 changed files with 6 additions and 3 deletions

View File

@ -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
}