mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
'Active' fork of EmoteManager bot; Discord bot that lets you manage server emotes
c5c6e7ef24
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. |
||
---|---|---|
cogs | ||
utils | ||
.gitignore | ||
bot.py | ||
config.example.py | ||
requirements.txt |