diff options
| author | 2020-04-08 09:06:17 +0300 | |
|---|---|---|
| committer | 2020-04-08 09:06:17 +0300 | |
| commit | a59092659271832a46c8ab0166031bffdc68c0a6 (patch) | |
| tree | ddf440d8a178088b0479037f96216b058fe73422 | |
| parent | (Mod Utils): Added shortening reason on embed creation in `notify_infraction`. (diff) | |
(Infractions): Removed unnecessary logging that notify when reason will be truncated for Audit Log.
| -rw-r--r-- | bot/cogs/moderation/infractions.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py index 2c809535b..d1e77311c 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -226,9 +226,6 @@ class Infractions(InfractionScheduler, commands.Cog): self.mod_log.ignore(Event.member_remove, user.id) - if len(reason) > 512: - log.info("Kick reason is longer than 512 characters. Reason will be truncated for Audit Log.") - action = user.kick(reason=textwrap.shorten(reason, width=512, placeholder="...")) await self.apply_infraction(ctx, infraction, user, action) @@ -248,9 +245,6 @@ class Infractions(InfractionScheduler, commands.Cog): self.mod_log.ignore(Event.member_remove, user.id) - if len(reason) > 512: - log.info("Ban reason is longer than 512 characters. Reason will be truncated for Audit Log.") - action = ctx.guild.ban( user, reason=textwrap.shorten(reason, width=512, placeholder=" ..."), |