Update
This commit is contained in:
parent
f744ab95de
commit
073fd9243a
1 changed files with 10 additions and 0 deletions
|
@ -110,6 +110,16 @@ 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):
|
||||||
|
error = traceback.format_exception(type(error), error, error.__traceback__)
|
||||||
|
strerror = "".join(error)
|
||||||
|
print(strerror, file=sys.stderr)
|
||||||
|
message = f"```py\n{strerror[-1800:]}\n```\n Contact <@{self.bot.owner_id}> if the error persists"
|
||||||
|
try:
|
||||||
|
await interaction.send(message, ephemeral=True)
|
||||||
|
except:
|
||||||
|
await interaction.followup.send(message, ephemeral=True)
|
||||||
|
|
||||||
|
|
||||||
class speechbubble(commands.Cog):
|
class speechbubble(commands.Cog):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue