We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a0d9b3 commit 573cb4aCopy full SHA for 573cb4a
1 file changed
techsupport_bot/commands/correct.py
@@ -55,6 +55,13 @@ async def correct_command(
55
updated_message = self.prepare_message(
56
message_to_correct.content, to_replace, replacement
57
)
58
+
59
+ if len(updated_message) > 4096:
60
+ await auxiliary.send_deny_embed(
61
+ message="The corrected message is too long to send", channel=ctx.channel
62
+ )
63
+ return
64
65
embed = auxiliary.generate_basic_embed(
66
title="Correction!",
67
description=f"{updated_message} :white_check_mark:",
0 commit comments