Truncate long validation error message
This commit is contained in:
parent
83dfec3aa6
commit
bdb9387d91
@ -136,8 +136,10 @@ class ArkhamDBUpdater(commands.Bot):
|
||||
validator.validate([deck for _, deck in latest_decks.values()])
|
||||
)
|
||||
if validation_errors:
|
||||
data = "\n".join(validation_errors)
|
||||
message_embed.add_field(
|
||||
name="Card overuse:", value="\n".join(validation_errors)
|
||||
name="Card overuse:",
|
||||
value=(data[:1020] + "\n...") if len(data) > 1024 else data,
|
||||
)
|
||||
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user