forked from cswimr/SeaCogs
fix(moderation): fixed moderation importer
This commit is contained in:
parent
dc9e755492
commit
f8b1e03d0e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class ImportModerationView(ui.View):
|
||||||
await interaction.edit_original_response(content="Importing moderations...")
|
await interaction.edit_original_response(content="Importing moderations...")
|
||||||
|
|
||||||
file = await self.ctx.message.attachments[0].read()
|
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 = [
|
user_mod_types = [
|
||||||
'NOTE',
|
'NOTE',
|
||||||
|
|
Loading…
Reference in a new issue