Update
This commit is contained in:
parent
e667d3ab85
commit
845f25f72f
1 changed files with 1 additions and 2 deletions
|
@ -112,8 +112,7 @@ class ApplicationModal(nextcord.ui.Modal):
|
||||||
await interaction.send(f"<@{self.victim.id}> {interaction.user.name} proposes the following speech bubble for you:", embed=embed, view=ApplicationView(self.bot))
|
await interaction.send(f"<@{self.victim.id}> {interaction.user.name} proposes the following speech bubble for you:", embed=embed, view=ApplicationView(self.bot))
|
||||||
|
|
||||||
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_exception(type(error), error, error.__traceback__)
|
error = traceback.format_exc()
|
||||||
strerror = "".join(error)
|
|
||||||
print(strerror, file=sys.stderr)
|
print(strerror, file=sys.stderr)
|
||||||
message = f"```py\n{strerror[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"
|
message = f"```py\n{strerror[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue