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):
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue