mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-22 16:32:59 +00:00
Fix audit log automod_rule_trigger_type extra missing
This commit is contained in:
@@ -761,7 +761,7 @@ class AuditLogEntry(Hashable):
|
|||||||
self.extra = _AuditLogProxyAutoModAction(
|
self.extra = _AuditLogProxyAutoModAction(
|
||||||
automod_rule_name=extra['auto_moderation_rule_name'],
|
automod_rule_name=extra['auto_moderation_rule_name'],
|
||||||
automod_rule_trigger_type=enums.try_enum(
|
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,
|
channel=channel,
|
||||||
)
|
)
|
||||||
@@ -769,7 +769,7 @@ class AuditLogEntry(Hashable):
|
|||||||
self.extra = _AuditLogProxyAutoModActionQuarantineUser(
|
self.extra = _AuditLogProxyAutoModActionQuarantineUser(
|
||||||
automod_rule_name=extra['auto_moderation_rule_name'],
|
automod_rule_name=extra['auto_moderation_rule_name'],
|
||||||
automod_rule_trigger_type=enums.try_enum(
|
automod_rule_trigger_type=enums.try_enum(
|
||||||
enums.AutoModRuleTriggerType, extra['auto_moderation_rule_trigger_type']
|
enums.AutoModRuleTriggerType, int(extra['auto_moderation_rule_trigger_type'])
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user