fix(aurora): pass a Type instead of a string
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Failing after 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 42s

This commit is contained in:
Seaswimmer 2024-07-06 13:24:44 -04:00
parent 9f747a77ca
commit ec32e19b8b
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -48,7 +48,7 @@ class ImportAuroraView(ui.View):
if case["moderation_id"] == 0:
continue
moderation_type: Type = type_registry[str.lower(case["moderation_type"])]
moderation_type: Type = type_registry[case["moderation_type"].lower()]
if "target_type" not in case or not case["target_type"]:
if moderation_type.channel:
case["target_type"] = "channel"
@ -92,7 +92,7 @@ class ImportAuroraView(ui.View):
bot=interaction.client,
guild_id=self.ctx.guild.id,
moderator_id=case["moderator_id"],
moderation_type=moderation_type.key,
moderation_type=moderation_type,
target_type=case["target_type"].lower(),
target_id=case["target_id"],
role_id=case["role_id"],