1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-03 00:53:12 +00:00
Commit graph

1 commit

Author SHA1 Message Date
kzndotsh
8e3d8cdc66 feat(emojis): add new snippetban and snippetunban emojis
feat(setup.py): add new Setup class for server setup
refactor(moderation): move handle_case_response method to ModerationCogBase class for code reusability
fix(moderation): replace async create_embed method with synchronous one
feat(moderation): add support for case handling in ban command
feat(cases.py): update snippetban and snippetunban emoji ids
refactor(cases.py): replace async create_embed method with synchronous one

refactor(jail.py, kick.py): remove redundant code and simplify jail and kick commands
feat(jail.py, kick.py): improve error handling and logging for jail and kick commands
style(jail.py, kick.py): improve code readability and maintainability by removing unnecessary imports and functions

refactor(snippetban.py, snippetunban.py, timeout.py): simplify case handling logic and error handling
feat(snippetban.py, snippetunban.py): add reason parameter to usage and make error messages ephemeral
fix(timeout.py): move send_dm call after successful timeout to ensure user is notified only when action is successful

refactor(unban.py, unjail.py): simplify unban and unjail commands by removing redundant code
feat(unjail.py): add error handling for missing jail role or jail channel
fix(unjail.py): ensure atomicity when removing jail role and adding previous roles to prevent partial role assignment

refactor(untimeout.py, warn.py): remove redundant code and simplify case response handling
fix(untimeout.py, warn.py): move send_dm call to after timeout/warn action to ensure it's sent after action is successful
2024-08-25 08:53:50 +00:00