forked from blizzthewolf/SeaCogs
fix(aurora): applied previous commit's fix to the other buttons
This commit is contained in:
parent
acf2484cbb
commit
ffcaeec653
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue