fix(aurora): pass a Type instead of a string
This commit is contained in:
parent
9f747a77ca
commit
ec32e19b8b
1 changed files with 2 additions and 2 deletions
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue