fix(moderation): fixed moderation importer

This commit is contained in:
Seaswimmer 2023-12-18 16:29:21 -05:00
parent dc9e755492
commit f8b1e03d0e
Signed by untrusted user: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -31,7 +31,7 @@ class ImportModerationView(ui.View):
await interaction.edit_original_response(content="Importing moderations...")
file = await self.ctx.message.attachments[0].read()
data = sorted(json.loads(file), key=lambda x: x['case'])
data = sorted(json.loads(file), key=lambda x: x['moderation_id'])
user_mod_types = [
'NOTE',