diff options
| author | 2019-09-12 13:32:05 +0200 | |
|---|---|---|
| committer | 2019-09-12 13:36:37 +0200 | |
| commit | 6bf86152b9eefc09e65d79537074f64904e04e04 (patch) | |
| tree | d0bd33994f30e7f8c7fc9e488e984f207199b32c /tests/cogs/__init__.py | |
| parent | Merge pull request #402 from python-discord/update-contrib (diff) | |
Fixed AntiSpam cog reload bug
https://github.com/python-discord/bot/issues/411
The AntiSpam code suffered from a bug where the attribute
self.muted_role was not defined after reloading the cog. The
bug was caused by the cog setting the attribute in on_ready
instead of directly in __init__. Fixed by setting the attribute
in the __init__.
Closes #411
Diffstat (limited to 'tests/cogs/__init__.py')
0 files changed, 0 insertions, 0 deletions