This commit is contained in:
insert 2024-08-11 14:23:23 -04:00
parent 989afd0b66
commit 1d78fc94bc
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -112,7 +112,7 @@ class ApplicationModal(nextcord.ui.Modal):
)
await interaction.send(f"<@{self.victim.id}> {interaction.user.name} proposes the following speech bubble for you:", embed=embed, view=ApplicationView(self.bot))
async def on_error(self, interaction: nextcord.Interaction, error: nextcord.DiscordException):
async def on_error(self, error: nextcord.DiscordException, interaction: nextcord.Interaction):
error = traceback.format_exc()
print(error, file=sys.stderr)
message = f"```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"