fix(aurora): applied previous commit's fix to the other buttons
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s

This commit is contained in:
Seaswimmer 2024-01-15 15:25:09 +00:00
parent acf2484cbb
commit ffcaeec653
Signed by: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -26,7 +26,7 @@ class Overrides(ui.View):
async def ephemeral(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument async def ephemeral(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
await interaction.response.defer() await interaction.response.defer()
if self.ctx.author != interaction.user: if self.ctx.author != interaction.user:
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True) await interaction.followup.send("You cannot change this setting for other users.", ephemeral=True)
return return
current_setting = await config.user(self.ctx.author).history_ephemeral() current_setting = await config.user(self.ctx.author).history_ephemeral()
if current_setting: if current_setting:
@ -39,7 +39,7 @@ class Overrides(ui.View):
async def inline(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument async def inline(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
await interaction.response.defer() await interaction.response.defer()
if self.ctx.author != interaction.user: if self.ctx.author != interaction.user:
await interaction.response.send_message("You cannot change this setting for other users.", ephemeral=True) await interaction.followup.send("You cannot change this setting for other users.", ephemeral=True)
return return
current_setting = await config.user(self.ctx.author).history_inline() current_setting = await config.user(self.ctx.author).history_inline()
if current_setting: if current_setting: