diff --git a/commands/booru.py b/commands/booru.py index cf6bc36..7e54016 100644 --- a/commands/booru.py +++ b/commands/booru.py @@ -70,7 +70,11 @@ async def on_reverse_error(event): error = '**An unknown SauceNAO error has occurred. The service may be down.**' if error: + try: await event.context.respond(error) + except: + await event.context.interaction.edit_initial_response(error, components=None) + return True async def _reverse(context, urls, *, selector=None): diff --git a/run.py b/run.py index 36dd8da..807c932 100644 --- a/run.py +++ b/run.py @@ -24,7 +24,7 @@ async def on_error(event): try: await event.context.respond(c.ERROR) except: - pass + await event.context.interaction.edit_initial_response(c.ERROR, components=None) raise event.exception