aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exceptions.py
blob: 8f5da91e9cbaab449ca79553b7bdaf687409f16f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
from discord.ext.commands import BadArgument


class CogBadArgument(BadArgument):
    """
    A custom `BadArgument` subclass that can be used for
    setting up custom error handlers on a per-command
    basis in cogs. The standard `on_command_error` handler
    ignores any exceptions of this type.
    """