EmoteManager/utils
bmintz c5c6e7ef24 fix command error handling
so, i had a fundamental misunderstanding about how command errors work.
turns out the help command runs the checks for each function.
This ended up sending one "permission denied" message for each command in the Emotes cog,
*each time help was run*.

To fix this, __local_check needs to not have extra side effects.
I create one new exception, MissingManageServerEmojis, and raise it in case the user or bot is missing permissions.
I re-use NoPrivateMessages, since that's already a d.py exception.

Then I catch the errors in on_command_error, and send them to the user.
2018-07-31 02:38:14 -05:00
..
__init__.py add list command 2018-07-30 00:43:30 -05:00
emote.py add add command 2018-07-29 23:38:19 -05:00
errors.py fix command error handling 2018-07-31 02:38:14 -05:00
image.py move image utils to utils.image 2018-07-30 00:26:15 -05:00
misc.py add add command 2018-07-29 23:38:19 -05:00
paginator.py add paginator module 2018-07-30 00:54:13 -05:00