aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-16 18:09:08 -0800
committerGravatar MarkKoz <[email protected]>2020-02-16 18:09:08 -0800
commit9bfdf7e3e95c07a1b0369c9fa8bdb4c91339732f (patch)
tree9a80691bc6429f44f090641256399b64c884dcbf /tests/helpers.py
parentError handler: (almost) always log the error being handled (diff)
Error handler: simplify check failure handler & handle bot missing roles
discord.py's default error messages are quite descriptive already so there really isn't a need to write our own. Therefore, the log calls were removed so that the generic debug log message is used in the on_command_error. In addition to handling missing bot permissions, missing bot roles are also handled. The message doesn't specify which because it doesn't really matter to the end-user. The logs will use the default error messages as described above, and those will contain the specific roles or permissions that are missing.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions