feat(help.py): modify _get_prefix method to use a default prefix constant when dynamic fetch fails
style(help.py): add line breaks for better code readability
refactor(help.py): rearrange flag_details list initialization for better code organization
style(help.py): remove unnecessary line break in _add_cog_pages method
style(help.py): add line breaks before return statements for better code readability
chore: remove error handling blocks from dev.py to simplify code and rely on global error handling
refactor: remove dollar sign from usage instructions in command decorators for clarity and consistency across all command usage instructions
feat(error.py): add prefix to command usage in error messages for better clarity
refactor(error.py): change error messages to be more descriptive and accurate
feat(error.py): use embeds for error messages for better readability
refactor(error.py): comment out specific error handlers to allow global handler to catch all errors for consistency
refactor(help.py): remove static prefix and add dynamic prefix fetching to improve flexibility
feat(help.py): add command aliases to help command categories for better command visibility
refactor(help.py): change several methods to async to support dynamic prefix fetching
feat(embeds.py): add create_error_embed method to standardize error embed creation
refactor(jail.py, unjail.py, guild_config.py, report.py): rename methods to improve clarity and consistency
fix(error.py): add delete_after parameter to error messages to auto-delete them after 30 seconds
feat(slowmode.py): add support for 'm' suffix in delay input and convert it to seconds
fix(slowmode.py): update error message for invalid delay value to improve clarity
fix(moderation): add User type to moderator to handle cases where moderator is not a Member
fix(moderation): add condition to check if moderator is a Member before comparing roles to prevent errors
style(roles.py): reformat toggle_role function signature for better readability
fix(slowmode.py): remove 'h' from delay units as it's not supported
style(timeout.py): add whitespace for better readability
fix(.env.example): set default timezone to UTC to avoid timezone related issues
refactor(main.py): remove unused debug code to improve code cleanliness
feat(bot.py): enhance logging for Prisma client setup and connection status for better debugging
style(bot.py): improve logging messages for better readability
feat(main.py): integrate Sentry setup into main function for better error tracking
refactor(constants.py): simplify database URL environment variables and add verbose loading for dotenv
chore(sentry.py): remove redundant Sentry setup file as setup is now integrated into main function
The Mail cog has been refactored to improve readability and maintainability. The changes include:
- The creation of a new MailboxData type to improve type safety and readability.
- The extraction of password generation and mailbox data preparation into separate methods to improve code organization and readability.
- The extraction of response handling into a separate method to reduce complexity in the main method.
- The extraction of mailbox info extraction and DM sending into separate methods to improve code organization and readability.
- The removal of redundant comments and code to improve readability.