fix(aurora): applied previous commit's fix to the other buttons

This commit is contained in:
Seaswimmer 2024-01-15 15:25:09 +00:00
parent acf2484cbb
commit ffcaeec653
Signed by untrusted user: 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
await interaction.response.defer()
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
current_setting = await config.user(self.ctx.author).history_ephemeral()
if current_setting:
@ -39,7 +39,7 @@ class Overrides(ui.View):
async def inline(self, interaction: Interaction, button: ui.Button): # pylint: disable=unused-argument
await interaction.response.defer()
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
current_setting = await config.user(self.ctx.author).history_inline()
if current_setting: