aboutsummaryrefslogtreecommitdiff
path: root/discord/guild.py
diff options
context:
space:
mode:
Diffstat (limited to 'discord/guild.py')
-rw-r--r--discord/guild.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/discord/guild.py b/discord/guild.py
index 5d99aa06..0e4c3099 100644
--- a/discord/guild.py
+++ b/discord/guild.py
@@ -748,6 +748,8 @@ class Guild(Hashable):
be owner of the guild to do this.
verification_level: :class:`VerificationLevel`
The new verification level for the guild.
+ default_notifications: :class:`NotificationLevel`
+ The new default notification level for the guild.
vanity_code: str
The new vanity code for the guild.
system_channel: Optional[:class:`TextChannel`]
@@ -799,6 +801,13 @@ class Guild(Hashable):
fields['splash'] = splash
try:
+ default_message_notifications = int(fields.pop('default_notifications'))
+ except (TypeError, KeyError):
+ pass
+ else:
+ fields['default_message_notifications'] = default_message_notifications
+
+ try:
afk_channel = fields.pop('afk_channel')
except KeyError:
pass