You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Made Latex editable without spamming the channel using Modals
Describe your changes
slash command -> modal -> embed where user can initialize the /latex command with a slash command, edit it as much as they like in the modal, with preview of how it will look, and a "publish" button which sends it to the chat as an embed. All modals and previews are ephemeral to avoid spamming the chat with mistakes.
Added
Invalid Equation image to appear during editing when the typed LaTeX equation is not renderable
_latex_utilities.py to store the Modal classes for editing Latex equations.
Fixed
latex.py to have the slash command open a Modal where the user can edit their LaTeX submission before publicly sending it to the channel.
Changed
Small Concern
Looking at my Docker logs, it seems like the logging is not working but nothing in my edited code seems to have anything to do with it and I am never referencing the .id attribute of anything.
2026-08-23 20:24:00 :: 08-23 11:24.00 :: ERROR :: client.py line 582 --- Ignoring exception in on_message_edit
2026-08-23 20:24:00 Traceback (most recent call last):
2026-08-23 20:24:00 File "/bot/.venv/lib/python3.12/site-packages/discord/client.py", line 508, in _run_event
2026-08-23 20:24:00 await coro(*args, **kwargs)
2026-08-23 20:24:00 File "/bot/src/bot/cogs/logging/logging_message_edit.py", line 57, in on_message_edit
2026-08-23 20:24:00 message_before.guild.id != int(os.getenv("MASTER_GUILD"))
2026-08-23 20:24:00 ^^^^^^^^^^^^^^^^^^^^^^^
2026-08-23 20:24:00 AttributeError: 'NoneType' object has no attribute 'id'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Made Latex editable without spamming the channel using Modals
Describe your changes
slash command -> modal -> embed where user can initialize the /latex command with a slash command, edit it as much as they like in the modal, with preview of how it will look, and a "publish" button which sends it to the chat as an embed. All modals and previews are ephemeral to avoid spamming the chat with mistakes.
Added
Fixed
Changed
Small Concern
Checklist
pre-commitover your PR?master?master?