Closed ItsDrike closed 4 years ago
Closes #27
As suggested in #27 decorator in_channel was reworked and changed to in_whitelist. The exception InChannelCheckFailure was also renamed to InWhitelistCheckFailure.
in_channel
in_whitelist
InChannelCheckFailure
InWhitelistCheckFailure
Added all suggested features from the corresponding issue.
The error_handler cog should also be updated to catch this new exception class instead of using the old one
error_handler
https://github.com/ItsDrike/CommandBot/blob/a91edd69c4b00c23e1a89755e3ba171b30a2302f/bot/cogs/error_handler.py#L8
https://github.com/ItsDrike/CommandBot/blob/a91edd69c4b00c23e1a89755e3ba171b30a2302f/bot/cogs/error_handler.py#L133
https://github.com/ItsDrike/CommandBot/blob/a91edd69c4b00c23e1a89755e3ba171b30a2302f/bot/cogs/error_handler.py#L143
These references to old InChannelCheckFailure should also be reworked in the information cog:
information
https://github.com/ItsDrike/CommandBot/blob/a91edd69c4b00c23e1a89755e3ba171b30a2302f/bot/cogs/information.py#L16
https://github.com/ItsDrike/CommandBot/blob/a91edd69c4b00c23e1a89755e3ba171b30a2302f/bot/cogs/information.py#L192-L195
https://github.com/ItsDrike/CommandBot/blob/a91edd69c4b00c23e1a89755e3ba171b30a2302f/bot/cogs/information.py#L159-L162
Closes #27
As suggested in #27 decorator
in_channel
was reworked and changed toin_whitelist
. The exceptionInChannelCheckFailure
was also renamed toInWhitelistCheckFailure
.Added all suggested features from the corresponding issue.