aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-14 18:29:55 +0300
committerGravatar ks129 <[email protected]>2020-04-14 18:29:55 +0300
commit6928c492c1d989567c47dfd49a396730c6c8bb27 (patch)
tree943d3bbc16fc340a8ef73961ce1c87d5fbd09f16
parent(ModLog): Applied force embed description truncating in `send_log_message` to... (diff)
(Scheduler): Removed empty line when expiration not specified in `apply_infraction`.
-rw-r--r--bot/cogs/moderation/scheduler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py
index b238cf4e2..5b59b4d4b 100644
--- a/bot/cogs/moderation/scheduler.py
+++ b/bot/cogs/moderation/scheduler.py
@@ -102,7 +102,7 @@ class InfractionScheduler(Scheduler):
dm_result = ""
dm_log_text = ""
- expiry_log_text = f"Expires: {expiry}" if expiry else ""
+ expiry_log_text = f"\nExpires: {expiry}" if expiry else ""
log_title = "applied"
log_content = None
@@ -181,8 +181,7 @@ class InfractionScheduler(Scheduler):
thumbnail=user.avatar_url_as(static_format="png"),
text=textwrap.dedent(f"""
Member: {user.mention} (`{user.id}`)
- Actor: {ctx.message.author}{dm_log_text}
- {expiry_log_text}
+ Actor: {ctx.message.author}{dm_log_text} {expiry_log_text}
Reason: {reason}
"""),
content=log_content,