Update
This commit is contained in:
parent
845f25f72f
commit
57c5ce98dd
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue