fix(aurora): fixed a keyerror in the message_factory function and cleaned up some other problems
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 37s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 56s

This commit is contained in:
cswimr 2024-08-19 03:55:08 -04:00
parent ac7d950aaa
commit 7b3608e264
Signed by: cswimr
GPG key ID: 3813315477F26F82
3 changed files with 9 additions and 7 deletions

View file

@ -42,12 +42,7 @@ async def message_factory(
Returns:
embed: The message embed.
"""
if response is not None and moderation_type.key not in [
"kick",
"ban",
"tempban",
"unban",
]:
if response is not None and not moderation_type.removes_from_guild:
guild_name = f"[{guild.name}]({response.jump_url})"
else:
guild_name = guild.name