From 23946ffb9d5c503051119db9e5bdc0d59a489cc0 Mon Sep 17 00:00:00 2001 From: Solumath Date: Sun, 1 Sep 2024 18:23:54 +0200 Subject: [PATCH] fix: report missing attachment --- cogs/report/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/report/views.py b/cogs/report/views.py index afe2368d0..2c966c33a 100644 --- a/cogs/report/views.py +++ b/cogs/report/views.py @@ -127,7 +127,7 @@ async def resolve(self, button: disnake.ui.Button, inter: disnake.MessageInterac await report_author.send(embed=embed_user) await inter.message.channel.send(embed=embed) - await inter.edit_original_response(embed=embed, view=self, attachments=None) + await inter.edit_original_response(embed=embed, view=self) @disnake.ui.button( label="Send answer", emoji="✉️", style=disnake.ButtonStyle.secondary, custom_id="report:answer" @@ -154,7 +154,7 @@ async def spam(self, button: disnake.ui.Button, inter: disnake.MessageInteractio await report_author.send(embed=spam_embed) await report_message.channel.send(embed=spam_embed) - await inter.edit_original_response(embed=embed, view=self, attachments=None) + await inter.edit_original_response(embed=embed, view=self) async def on_error(self, error, item: disnake.ui.Item, interaction: disnake.MessageInteraction): if isinstance(error, ButtonInteractionError): @@ -212,7 +212,7 @@ async def delete(self, button: disnake.ui.Button, inter: disnake.MessageInteract await report_message.channel.send(embed=embed) await report_author.send(embed=embed, view=ReportAnonymView(self.bot)) - await inter.edit_original_response(view=self, attachments=None) + await inter.edit_original_response(view=self) class ReportAnonymView(BaseView):