diff options
| author | NCPlayz <[email protected]> | 2020-05-18 00:39:22 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-05-29 23:21:59 -0400 |
| commit | bd1420b5f0b9856d3bb7129a0e4353d6bd570bb0 (patch) | |
| tree | 181c0a1210a9a7cddf2286c28fce1889a6578070 /discord/http.py | |
| parent | Fix KeyError on Member Channels not in JSON (diff) | |
| download | discord.py-bd1420b5f0b9856d3bb7129a0e4353d6bd570bb0.tar.xz discord.py-bd1420b5f0b9856d3bb7129a0e4353d6bd570bb0.zip | |
Allow editing of channel types for news and text channels
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py index e1653ed8..46483c04 100644 --- a/discord/http.py +++ b/discord/http.py @@ -529,7 +529,8 @@ class HTTPClient: def edit_channel(self, channel_id, *, reason=None, **options): r = Route('PATCH', '/channels/{channel_id}', channel_id=channel_id) valid_keys = ('name', 'parent_id', 'topic', 'bitrate', 'nsfw', - 'user_limit', 'position', 'permission_overwrites', 'rate_limit_per_user') + 'user_limit', 'position', 'permission_overwrites', 'rate_limit_per_user', + 'type') payload = { k: v for k, v in options.items() if k in valid_keys } |