mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 17:07:45 +00:00
add error handling for invalid channels
This commit is contained in:
parent
eca97106f6
commit
8b7a562111
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ class ErrorHandler(commands.Cog):
|
|||
elif isinstance(error, commands.MissingPermissions):
|
||||
await ctx.reply("You can't use this command!")
|
||||
|
||||
elif isinstance(error, commands.ChannelNotFound):
|
||||
await ctx.reply("Invalid channel.")
|
||||
|
||||
else:
|
||||
trace = traceback.format_exception(
|
||||
type(error), error, error.__traceback__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue