diff options
author | 2024-03-26 08:58:38 -0500 | |
---|---|---|
committer | 2024-03-26 13:58:38 +0000 | |
commit | 3a5e38696d9e5699e65bed23c946ce4f754ea961 (patch) | |
tree | ed0383167117c3cf15660f95684da9c0a74fff5c /tests/bot/test_constants.py | |
parent | Fix type annotation in snekbox (diff) |
Ask for confirmation when banning members with elevated roles (#2316)
* Add safeguard when banning staff
* Update infractions.py
* Fix logical error where user would not get banned
* Update bot/exts/moderation/infraction/infractions.py
Co-authored-by: Preocts <[email protected]>
* Delete view if confirmed
* Implement suggestions
* Use instead of
* Don't call timeout manually
* Lint
* Switch button colors
* Remove message bind to view class
* Set message property of view to sent message
* Update poetry.lock
* Remove unnecessary View initializer
* Send message indicating if the infraction was cancelled or not
* Remove feedback on confirm
* Merge main into staff-ban-safeguard
* Make invocation async
* Make .stop() invocation sync again
* Clean up code
* Avoid truncating early and send message on timeout
* Should probably move this, too
* Fail safely
* Move view to a new file
* Break out confirmation into its own function
---------
Co-authored-by: Preocts <[email protected]>
Co-authored-by: Richard Si <[email protected]>
Diffstat (limited to 'tests/bot/test_constants.py')
0 files changed, 0 insertions, 0 deletions