|
|
@ -33,6 +33,9 @@ from .invite import Invite |
|
|
|
def _transform_verification_level(entry, data): |
|
|
|
return enums.try_enum(enums.VerificationLevel, data) |
|
|
|
|
|
|
|
def _transform_default_notifications(entry, data): |
|
|
|
return enums.try_enum(enums.NotificationLevel, data) |
|
|
|
|
|
|
|
def _transform_explicit_content_filter(entry, data): |
|
|
|
return enums.try_enum(enums.ContentFilter, data) |
|
|
|
|
|
|
@ -112,6 +115,7 @@ class AuditLogChanges: |
|
|
|
'icon_hash': ('icon', None), |
|
|
|
'avatar_hash': ('avatar', None), |
|
|
|
'rate_limit_per_user': ('slowmode_delay', None), |
|
|
|
'default_message_notifications': ('default_notifications', _transform_default_notifications), |
|
|
|
} |
|
|
|
|
|
|
|
def __init__(self, entry, data): |
|
|
|