Skip to content

Commit

Permalink
modals.py: Fix edit rule embed
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenChen committed Nov 9, 2024
1 parent cf029dd commit d3cd808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/modals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3cd808

Please sign in to comment.