This commit is contained in:
insert 2024-08-11 14:09:26 -04:00
parent 845f25f72f
commit 57c5ce98dd
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -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: