Closed Kevin-Roman closed 2 months ago
This issue was unknowingly resolved in this commit. The problem was caused by the following behaviour in the old code:
constraints_position
was -1.constraints_position + len(constraint_query_string)
being a small positive number.When this commit was later merged on May 24th 2024, this issue was fixed as questions no longer included constraints. This means that all questions now fall within the Discord embed character limit of 6000 characters, and this issue can be closed.
Description
Using
/problem
, any problem that leads to an embed size of more than 6000 characters in total, alongside per field character restrictions, cannot be sent. These restrictions are documented here: https://www.pythondiscord.com/pages/guides/python-guides/discord-embed-limits/. An example of such question is LeetCode problem 1070.Potential solutions
Where to start
./ui/embeds/problems.py - question_embed