From 6ce9796581212d51aca77a388a8b805e3a9ac9ea Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 01:16:29 -0500 Subject: [PATCH] added error handling to warehouse --- galaxy/galaxy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 774b80c..cb537bf 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -29,6 +29,7 @@ class Galaxy(commands.Cog): await ctx.send(contents="``lvlto`` must be higher than 1 and lower than 39") else: await ctx.send(embed=embed) + await ctx.message.delete() @commands.group(autohelp=True) async def faq(self, ctx): @@ -143,6 +144,7 @@ class Galaxy(commands.Cog): await ctx.message.delete() + @warehouse.error @faq_test.error @faq_linked_role.error @faq_npc_intervals.error @@ -152,6 +154,6 @@ class Galaxy(commands.Cog): @faq_polaris_ranks.error @faq_polaris_switch.error async def faq_handler(self, ctx, error): - """Error Handler for FAQ.""" + """Error Handler for Galaxy.""" if isinstance(error, discord.NotFound): return \ No newline at end of file