Support setting the preferred locale via Guild.edit

Fix #6267
This commit is contained in:
Rapptz
2021-01-05 22:43:22 -05:00
parent be1829615c
commit 3a75816ba1
2 changed files with 5 additions and 2 deletions

View File

@ -659,7 +659,7 @@ class HTTPClient:
'system_channel_id', 'default_message_notifications',
'description', 'explicit_content_filter', 'banner',
'system_channel_flags', 'rules_channel_id',
'public_updates_channel_id')
'public_updates_channel_id', 'preferred_locale',)
payload = {
k: v for k, v in fields.items() if k in valid_keys