Aurora Configuration Rewrite #15

Merged
cswimr merged 73 commits from aurora-config-rewrite into main 2024-01-16 12:19:08 -05:00
Showing only changes of commit ffcaeec653 - Show all commits

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: