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