Browse Source
Fix audit log automod_rule_trigger_type extra missing
pull/9996/merge
Alex Nørgaard
3 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
discord/audit_logs.py
|
|
@ -761,7 +761,7 @@ class AuditLogEntry(Hashable): |
|
|
|
self.extra = _AuditLogProxyAutoModAction( |
|
|
|
automod_rule_name=extra['auto_moderation_rule_name'], |
|
|
|
automod_rule_trigger_type=enums.try_enum( |
|
|
|
enums.AutoModRuleTriggerType, extra['auto_moderation_rule_trigger_type'] |
|
|
|
enums.AutoModRuleTriggerType, int(extra['auto_moderation_rule_trigger_type']) |
|
|
|
), |
|
|
|
channel=channel, |
|
|
|
) |
|
|
@ -769,7 +769,7 @@ class AuditLogEntry(Hashable): |
|
|
|
self.extra = _AuditLogProxyAutoModActionQuarantineUser( |
|
|
|
automod_rule_name=extra['auto_moderation_rule_name'], |
|
|
|
automod_rule_trigger_type=enums.try_enum( |
|
|
|
enums.AutoModRuleTriggerType, extra['auto_moderation_rule_trigger_type'] |
|
|
|
enums.AutoModRuleTriggerType, int(extra['auto_moderation_rule_trigger_type']) |
|
|
|
), |
|
|
|
) |
|
|
|
|
|
|
|