From a7f6cff62502832d1c93156505d11adefc6eb7fd Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 15 Jan 2024 15:20:47 +0000 Subject: [PATCH] fix(aurora): possibly fixed editing the config menu on settings change --- aurora/configuration/menus/core.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/aurora/configuration/menus/core.py b/aurora/configuration/menus/core.py index d04e569..2d92018 100644 --- a/aurora/configuration/menus/core.py +++ b/aurora/configuration/menus/core.py @@ -11,18 +11,13 @@ class Overrides(ui.View): @ui.button(label="Auto Evidence Format", style=ButtonStyle.green) async def auto_evidenceformat(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument - await interaction.response.defer(ephemeral=True) + await interaction.response.defer() current_setting = await config.user(self.ctx.author).auto_evidenceformat() if current_setting is not None: await config.user(self.ctx.author).auto_evidenceformat.set(not current_setting) else: await config.user(self.ctx.author).auto_evidenceformat.set(True) - if current_setting is True: - response = "Auto Evidence Format disabled." - else: - response = "Auto Evidence Format enabled." - await self.ctx.message.edit(embed=await embed(self.ctx)) - await interaction.followup.send(content=response, ephemeral=True) + await interaction.message.edit(embed=await embed(self.ctx)) @ui.button(label="Ephemeral", style=ButtonStyle.green) async def ephemeral(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument