added error handling to warehouse
This commit is contained in:
parent
d335bbafda
commit
6ce9796581
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,7 @@ class Galaxy(commands.Cog):
|
||||||
await ctx.send(contents="``lvlto`` must be higher than 1 and lower than 39")
|
await ctx.send(contents="``lvlto`` must be higher than 1 and lower than 39")
|
||||||
else:
|
else:
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
await ctx.message.delete()
|
||||||
|
|
||||||
@commands.group(autohelp=True)
|
@commands.group(autohelp=True)
|
||||||
async def faq(self, ctx):
|
async def faq(self, ctx):
|
||||||
|
@ -143,6 +144,7 @@ class Galaxy(commands.Cog):
|
||||||
await ctx.message.delete()
|
await ctx.message.delete()
|
||||||
|
|
||||||
|
|
||||||
|
@warehouse.error
|
||||||
@faq_test.error
|
@faq_test.error
|
||||||
@faq_linked_role.error
|
@faq_linked_role.error
|
||||||
@faq_npc_intervals.error
|
@faq_npc_intervals.error
|
||||||
|
@ -152,6 +154,6 @@ class Galaxy(commands.Cog):
|
||||||
@faq_polaris_ranks.error
|
@faq_polaris_ranks.error
|
||||||
@faq_polaris_switch.error
|
@faq_polaris_switch.error
|
||||||
async def faq_handler(self, ctx, error):
|
async def faq_handler(self, ctx, error):
|
||||||
"""Error Handler for FAQ."""
|
"""Error Handler for Galaxy."""
|
||||||
if isinstance(error, discord.NotFound):
|
if isinstance(error, discord.NotFound):
|
||||||
return
|
return
|
Loading…
Reference in a new issue