mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Fix missing permissions exception from being thrown to the enduser
This commit is contained in:
parent
ff72e186b0
commit
1c5f2b39a0
1 changed files with 2 additions and 0 deletions
|
@ -161,6 +161,8 @@ async def on_error(error, *args, **kwargs):
|
||||||
async def on_command_error(ctx, error):
|
async def on_command_error(ctx, error):
|
||||||
if isinstance(error, err.NotFound):
|
if isinstance(error, err.NotFound):
|
||||||
print('NOT FOUND')
|
print('NOT FOUND')
|
||||||
|
elif isinstance(error, err.Forbidden):
|
||||||
|
pass
|
||||||
elif isinstance(error, errext.MissingRequiredArgument):
|
elif isinstance(error, errext.MissingRequiredArgument):
|
||||||
await ctx.send('**Missing required argument**')
|
await ctx.send('**Missing required argument**')
|
||||||
await ctx.message.add_reaction('\N{CROSS MARK}')
|
await ctx.message.add_reaction('\N{CROSS MARK}')
|
||||||
|
|
Loading…
Reference in a new issue