make sure ephemeral messages are actually ephemeral

oopsie woopsie we leaked the auth link. the security team is working very hard to fix this
This commit is contained in:
Leander Furumo committed 2024-04-12 04:11:21 +02:00
1 parent 02e3b0601f
commit 0f90e9bbf8
1 file changed
+4 -4
+4 -4
View File
@@ -167,7 +167,7 @@ class Galtinn(commands.Cog):
interaction (discord.Interaction): Slash command context object interaction (discord.Interaction): Slash command context object
""" """
await interaction.response.defer() await interaction.response.defer(ephemeral=True)
# Check if user is already registered # Check if user is already registered
@@ -240,7 +240,7 @@ class Galtinn(commands.Cog):
interaction (discord.Interaction): Slash command context object interaction (discord.Interaction): Slash command context object
""" """
await interaction.response.defer() await interaction.response.defer(ephemeral=True)
# Check if user exists # Check if user exists
@@ -266,12 +266,12 @@ class DeleteView(discord.ui.View):
# Delete user connection # Delete user connection
embed = embed_templates.success("Du har slettet tilkoblingen til Galtinnbrukeren din!") embed = embed_templates.success("Du har slettet tilkoblingen til Galtinnbrukeren din!")
await interaction.message.edit(embed=embed, view=None) await interaction.message.edit(embed=embed, view=None, ephemeral=True)
@discord.ui.button(label="Avbryt", style=discord.ButtonStyle.primary, custom_id="delete_no") @discord.ui.button(label="Avbryt", style=discord.ButtonStyle.primary, custom_id="delete_no")
async def delete_no(self, interaction: discord.Interaction, button: discord.ui.Button): async def delete_no(self, interaction: discord.Interaction, button: discord.ui.Button):
embed = embed_templates.error_warning("Sletting avbrutt") embed = embed_templates.error_warning("Sletting avbrutt")
await interaction.message.edit(embed=embed, view=None) await interaction.message.edit(embed=embed, view=None, ephemeral=True)
async def setup(bot: commands.Bot): async def setup(bot: commands.Bot):