mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Add support for guild descriptions
This commit is contained in:
parent
5ea84fb971
commit
616616b847
@ -758,6 +758,9 @@ class Guild(Hashable):
|
||||
----------
|
||||
name: str
|
||||
The new name of the guild.
|
||||
description: str
|
||||
The new description of the guild. This is only available to guilds that
|
||||
contain `VERIFIED` in :attr:`Guild.features`.
|
||||
icon: bytes
|
||||
A :term:`py:bytes-like object` representing the icon. Only PNG/JPEG supported.
|
||||
Could be ``None`` to denote removal of the icon.
|
||||
|
@ -568,7 +568,7 @@ class HTTPClient:
|
||||
valid_keys = ('name', 'region', 'icon', 'afk_timeout', 'owner_id',
|
||||
'afk_channel_id', 'splash', 'verification_level',
|
||||
'system_channel_id', 'default_message_notifications',
|
||||
'explicit_content_filter')
|
||||
'description', 'explicit_content_filter')
|
||||
|
||||
payload = {
|
||||
k: v for k, v in fields.items() if k in valid_keys
|
||||
|
Loading…
x
Reference in New Issue
Block a user