fix(aurora): fixed /edit
command not properly storing the data from the old moderation
This commit is contained in:
parent
5fc6d0eb6a
commit
51f165c480
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ class Aurora(commands.Cog):
|
||||||
This cog stores all of its data in an SQLite database."""
|
This cog stores all of its data in an SQLite database."""
|
||||||
|
|
||||||
__author__ = ["Seaswimmer"]
|
__author__ = ["Seaswimmer"]
|
||||||
__version__ = "3.0.0-indev11"
|
__version__ = "3.0.0-indev12"
|
||||||
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
|
__documentation__ = "https://seacogs.coastalcommits.com/aurora/"
|
||||||
|
|
||||||
async def red_delete_data_for_user(self, *, requester, user_id: int):
|
async def red_delete_data_for_user(self, *, requester, user_id: int):
|
||||||
|
@ -1030,7 +1030,7 @@ class Aurora(commands.Cog):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
moderation = await Moderation.find_by_id(interaction.client, case, interaction.guild.id)
|
moderation = await Moderation.find_by_id(interaction.client, case, interaction.guild.id)
|
||||||
old_moderation = moderation
|
old_moderation = moderation.model_copy(deep=True)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
content=error(f"Case #{case:,} does not exist!"), ephemeral=True
|
content=error(f"Case #{case:,} does not exist!"), ephemeral=True
|
||||||
|
|
Loading…
Reference in a new issue