diff options
| author | 2020-04-08 15:12:56 +0300 | |
|---|---|---|
| committer | 2020-04-08 15:12:56 +0300 | |
| commit | b765ecb280a3ba0ca017350a4c69dc9c07f97a67 (patch) | |
| tree | a389f66914a6983d86b549b698212c44bb20635b | |
| parent | (ModLog): Added mod log item embed description truncating when it's too long. (diff) | |
(Scheduler): Removed reason truncation from `apply_infraction`, changed order of ModLog embed description item in same function.
| -rw-r--r-- | bot/cogs/moderation/scheduler.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py index 345f08f19..fbb2d457b 100644 --- a/bot/cogs/moderation/scheduler.py +++ b/bot/cogs/moderation/scheduler.py @@ -85,7 +85,7 @@ class InfractionScheduler(Scheduler): infr_type = infraction["type"] icon = utils.INFRACTION_ICONS[infr_type][0] # Truncate reason when it's too long to avoid raising error on sending ModLog entry - reason = textwrap.shorten(infraction["reason"], width=1500, placeholder="...") + reason = infraction["reason"] expiry = time.format_infraction_with_duration(infraction["expires_at"]) id_ = infraction['id'] @@ -182,8 +182,8 @@ class InfractionScheduler(Scheduler): text=textwrap.dedent(f""" Member: {user.mention} (`{user.id}`) Actor: {ctx.message.author}{dm_log_text} - Reason: {reason} {expiry_log_text} + Reason: {reason} """), content=log_content, footer=f"ID {infraction['id']}" |