diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index 7d6b87955..d29af7946 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -170,12 +170,10 @@ async def on_message_edit( # This is here to save space if this listener is triggered by something other than # a content modification, i.e. a message being pinned if before.content == after.content: - embed.add_field(name="Before", value=before.content).add_field( - name="After", value="" - ) + return # Length handling has to be here, 1024 is the limit for inividual fields - elif len(before.content) > 1016 or len(after.content) > 1016: + if len(before.content) > 1016 or len(after.content) > 1016: embed.set_footer( text="Edit was too long to send! Sending just the result instead..." )