Skip to content

Commit

Permalink
fix: report missing attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
solumath committed Sep 1, 2024
1 parent 9f92b2e commit 23946ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cogs/report/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 23946ff

Please sign in to comment.