Skip to content

refactor: move checks and messages to utils with deprecation notices #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2025

Conversation

Endkind
Copy link
Member

@Endkind Endkind commented Jul 12, 2025

  • moved check_* decorators from ModubotDiscord.commands.__init__ to ModubotDiscord.utils.checks.permissions and ModubotDiscord.utils.checks.owner
  • moved send_message and send_error to ModubotDiscord.utils.messages
  • added deprecation warnings for old check_* send_message, and send_error usages
  • introduced ErrorType enum for standardized error titles

- moved `check_*` decorators from `ModubotDiscord.commands.__init__` to `ModubotDiscord.utils.checks.permissions` and `ModubotDiscord.utils.checks.owner`
- moved `send_message` and `send_error` to `ModubotDiscord.utils.messages`
- added deprecation warnings for old `check_*` `send_message`, and `send_error` usages
- introduced `ErrorType` enum for standardized error titles
@Endkind Endkind self-assigned this Jul 12, 2025
@Endkind Endkind added maintenance Codebase cleanup or non-feature updates feature New functionality or enhancements labels Jul 12, 2025
@Endkind Endkind merged commit 0c6f312 into master Jul 12, 2025
1 check passed
@Endkind Endkind deleted the refactor/structure-cleanup-end branch July 12, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or enhancements maintenance Codebase cleanup or non-feature updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant