diff --git a/discord/automod.py b/discord/automod.py index cd4902a80..cc726d977 100644 --- a/discord/automod.py +++ b/discord/automod.py @@ -199,6 +199,14 @@ class AutoModTrigger: self.mention_limit: int = mention_limit if mention_limit is not None else 0 self.regex_patterns: List[str] = regex_patterns if regex_patterns is not None else [] + def __repr__(self) -> str: + data = self.to_metadata_dict() + if data: + joined = ' '.join(f'{k}={v!r}' for k, v in data.items()) + return f'' + + return f'' + @classmethod def from_data(cls, type: int, data: Optional[AutoModerationTriggerMetadataPayload]) -> Self: type_ = try_enum(AutoModRuleTriggerType, type)