diff --git a/speechbubble.py b/speechbubble.py index b6967ca..c9c7987 100644 --- a/speechbubble.py +++ b/speechbubble.py @@ -113,8 +113,8 @@ class ApplicationModal(nextcord.ui.Modal): async def on_error(self, interaction: nextcord.Interaction, error: nextcord.DiscordException): error = traceback.format_exc() - print(strerror, file=sys.stderr) - message = f"```py\n{strerror[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists" + print(error, file=sys.stderr) + message = f"```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists" try: await interaction.send(message, ephemeral=True) except: