| Commit message (Collapse) | Author | Lines |
|
|
|
|
|
Co-authored-by: Boris Muratov <[email protected]>
|
|
Due to the increase in typo-squatting based phishing,
we want to automatically ban users sending specific domain names.
For that, this commit will automatically ban any user that
trigger a filter which has `[autoban]` in its reason. That's it!
|
|
Since channels that mods can't read are now implicitly ignored, there is no need to explicitly ignore them.
|
|
|
|
This new name better describes what this function actually does
|
|
The main purpose of this is so that we don't need to keep adding to the modlog_blacklist for every new channel we want to ignore, since it now implicitly ignores channels mods don't have read perms to.
This is done by making use of Discord.py 2.0's updated behaviour of Channel.permissions_for() where it can now accept a role and determines the permissions of users in that role for a given channel. This takes into account default permissions as well as channel overrides.
Co-authored-by: Xithrius <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There's now always one blank line (no more, no less) after an import
|
|
|
|
|