diff options
| author | 2020-06-24 15:39:08 +0300 | |
|---|---|---|
| committer | 2020-06-24 15:39:08 +0300 | |
| commit | 5aaa7df5e72c5063b1eb59fe71c7dea745f18f48 (patch) | |
| tree | 9ff8fe24a8ca2fe374b21f69e20eb10bbe4d91c9 | |
| parent | Move infraction description template back to main file, apply it there (diff) | |
Remove unnecessary `textwrap.dedent` in `notify_infraction`
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/moderation/utils.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bot/cogs/moderation/utils.py b/bot/cogs/moderation/utils.py index cbef3420a..8b36210be 100644 --- a/bot/cogs/moderation/utils.py +++ b/bot/cogs/moderation/utils.py @@ -154,12 +154,10 @@ async def notify_infraction( """DM a user about their new infraction and return True if the DM is successful.""" log.trace(f"Sending {user} a DM about their {infr_type} infraction.") - text = textwrap.dedent( - INFRACTION_DESCRIPTION_TEMPLATE.format( - type=infr_type.capitalize(), - expires=expires_at or "N/A", - reason=reason or "No reason provided." - ) + text = INFRACTION_DESCRIPTION_TEMPLATE.format( + type=infr_type.capitalize(), + expires=expires_at or "N/A", + reason=reason or "No reason provided." ) embed = discord.Embed( |