diff options
author | 2023-02-28 13:45:47 +0200 | |
---|---|---|
committer | 2023-02-28 13:45:47 +0200 | |
commit | 7184925179775a433a5d7982ed7904aabc4a3a56 (patch) | |
tree | c48c7bb994367aa228066edbe7c94b30f19f1895 | |
parent | Use literals as defaults where possible (diff) |
Fix Infraction check
Co-authored-by: decorator-factory <[email protected]>
-rw-r--r-- | bot/exts/filtering/_settings_types/actions/infraction_and_notification.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/filtering/_settings_types/actions/infraction_and_notification.py b/bot/exts/filtering/_settings_types/actions/infraction_and_notification.py index a3b59d05d..389d2b7b9 100644 --- a/bot/exts/filtering/_settings_types/actions/infraction_and_notification.py +++ b/bot/exts/filtering/_settings_types/actions/infraction_and_notification.py @@ -119,7 +119,7 @@ class InfractionAndNotification(ActionEntry): async def action(self, ctx: FilterContext) -> None: """Send the notification to the user, and apply any specified infractions.""" # If there is no infraction to apply, any DM contents already provided in the context take precedence. - if self.infraction_type is None and (ctx.dm_content or ctx.dm_embed): + if self.infraction_type == Infraction.NONE and (ctx.dm_content or ctx.dm_embed): dm_content = ctx.dm_content dm_embed = ctx.dm_embed else: |