From c618f9be72a8546e8d74542c1fd254cdb9701eb0 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 4 May 2024 12:57:27 -0400 Subject: [PATCH] fix(aurora): updated the aurora importer to have all of the currently implemented moderation types --- aurora/importers/aurora.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aurora/importers/aurora.py b/aurora/importers/aurora.py index a4857aa..44cab98 100644 --- a/aurora/importers/aurora.py +++ b/aurora/importers/aurora.py @@ -43,7 +43,7 @@ class ImportAuroraView(ui.View): file = await self.ctx.message.attachments[0].read() data: list[dict] = sorted(json.loads(file), key=lambda x: x["moderation_id"]) - user_mod_types = ["NOTE", "WARN", "MUTE", "UNMUTE", "KICK", "BAN", "UNBAN"] + user_mod_types = ["NOTE", "WARN", "ADDROLE", "REMOVEROLE", "MUTE", "UNMUTE", "KICK", "TEMPBAN", "BAN", "UNBAN"] channel_mod_types = ["SLOWMODE", "LOCKDOWN"] @@ -58,6 +58,8 @@ class ImportAuroraView(ui.View): case["target_type"] = "USER" elif case["moderation_type"] in channel_mod_types: case["target_type"] = "CHANNEL" + else: + case["target_type"] = "USER" if "role_id" not in case or not case["role_id"]: case["role_id"] = 0