From d3cd808e12a8a382b158d2c0e388bb7f228c2238 Mon Sep 17 00:00:00 2001 From: FrozenChen Date: Sat, 9 Nov 2024 07:23:54 -0300 Subject: [PATCH] modals.py: Fix edit rule embed --- utils/modals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/modals.py b/utils/modals.py index ef7e87b7..474aea0a 100644 --- a/utils/modals.py +++ b/utils/modals.py @@ -26,7 +26,7 @@ async def on_submit(self, interaction: discord.Interaction): title = self.rule_title.value if self.rule_title.value else rule.title description = self.rule_description.value if self.rule_description.value else rule.description await bot.configuration.edit_rule(number, title, description) - await interaction.response.send_message(f"Rule {number} edited successfully!", embed=Embed(title=title, description=description, color=gen_color(number))) + await interaction.response.send_message(f"Rule {number} edited successfully!", embed=Embed(title=f"Rule {number} - {title}", description=description, color=gen_color(number))) else: title = self.rule_title.value description = self.rule_description.value