fix(aurora): fixed a keyerror in the message_factory function and cleaned up some other problems
This commit is contained in:
parent
ac7d950aaa
commit
7b3608e264
3 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue