Skip to content

feat(commands): add user context to new_thread command#167

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

feat(commands): add user context to new_thread command#167
Akinator31 merged 1 commit intomainfrom
160-extend-new_thread-command-to-work-with-user-context-menus

Conversation

@Akinator31
Copy link
Copy Markdown
Member

This pull request updates the NewThreadCommand to support Discord's user context menu commands in addition to the existing slash command. The changes allow users to initiate a new thread directly from the user context menu, improving the usability of the command.

Support for user context menu commands:

  • Added CommandType import and registered a new user context menu command variant for new_thread, enabling the command to be invoked from the user context menu. [1] [2]

Command argument handling improvements:

  • Updated argument extraction logic to support both slash command inputs and user context menu invocations by checking for a target_id if standard arguments are missing. This ensures the command works seamlessly in both contexts.

@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 40aaea5 into main Oct 7, 2025
6 checks passed
@Akinator31 Akinator31 deleted the 160-extend-new_thread-command-to-work-with-user-context-menus branch October 7, 2025 06:24
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 new_thread command to work with user context menus

1 participant