Skip to content

feat(commands): add user context to add_staff command#165

Merged
Akinator31 merged 1 commit intomainfrom
157-extend-add_staff-command-to-work-with-user-context-menus
Oct 7, 2025
Merged

feat(commands): add user context to add_staff command#165
Akinator31 merged 1 commit intomainfrom
157-extend-add_staff-command-to-work-with-user-context-menus

Conversation

@Akinator31
Copy link
Copy Markdown
Member

This pull request primarily consists of code quality improvements, specifically reordering import statements for consistency and clarity across multiple command modules. Additionally, there are enhancements to the add_staff command to support user context menu interactions and improved argument handling.

Enhancements to command functionality:

  • Added support for invoking the add_staff command as a user context menu command by registering it with CommandType::User and handling target_id as a fallback for user_id argument extraction. [1] [2]

Code quality and consistency improvements:

  • Standardized the order of imports throughout many files, placing common after other error types for improved readability. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

  • Minor import order fix in src/main.rs to move CommandRegistry import to the top, aligning with convention. [1] [2]

@Akinator31 Akinator31 self-assigned this Oct 7, 2025
@Akinator31 Akinator31 linked an issue Oct 7, 2025 that may be closed by this pull request
@Akinator31 Akinator31 merged commit e15a399 into main Oct 7, 2025
6 checks passed
@Akinator31 Akinator31 deleted the 157-extend-add_staff-command-to-work-with-user-context-menus branch October 7, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend add_staff command to work with user context menus

1 participant