Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions techsupport_bot/commands/modmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="<The contents are unchanged>"
)
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..."
)
Expand Down