Skip to content

Fully implement subcommand-specific contexts in CommandManager #51

@coderabbitai

Description

@coderabbitai

Description

Currently, CommandManager collects contexts from all subcommands and applies them to the parent command:

// TODO: Implement subcommand-specific contexts
InteractionContextType[] contexts = getSubcommandContexts(entry.getValue());
SlashCommandData d = Commands.slash(entry.getKey(), entry.getKey()).setContexts(contexts);

This works as a basic implementation, but individual subcommands may need their own specific context settings.

Proposed Solution

Implement a more granular approach that allows specifying different contexts for individual subcommands rather than just aggregating them at the parent command level.

References

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions