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): async def on_error(self, interaction: nextcord.Interaction, error: nextcord.DiscordException):
error = traceback.format_exc() error = traceback.format_exc()
print(strerror, file=sys.stderr) print(error, file=sys.stderr)
message = f"```py\n{strerror[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists" message = f"```py\n{error[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"
try: try:
await interaction.send(message, ephemeral=True) await interaction.send(message, ephemeral=True)
except: except: