mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2025-02-02 02:01:10 +00:00
Ignore unknown command error logging
This commit is contained in:
parent
48a22c5fa8
commit
31e712be86
|
@ -130,8 +130,9 @@ async def on_command_error(ctx, error):
|
||||||
|
|
||||||
log.error(err_msg)
|
log.error(err_msg)
|
||||||
|
|
||||||
err_msg = bot.escape_message(err_msg)
|
if not isinstance(error, commands.CommandNotFound):
|
||||||
await bot.botlog_channel.send(err_msg)
|
err_msg = bot.escape_message(err_msg)
|
||||||
|
await bot.botlog_channel.send(err_msg)
|
||||||
|
|
||||||
if isinstance(error, commands.NoPrivateMessage):
|
if isinstance(error, commands.NoPrivateMessage):
|
||||||
return await ctx.send("This command doesn't work on DMs.")
|
return await ctx.send("This command doesn't work on DMs.")
|
||||||
|
|
Loading…
Reference in a new issue