Skip to content

Add support for dynamic choices #329

@Kaktushose

Description

@Kaktushose

Example API (tbd)

    @Command("list user")
    public void onQuery(CommandEvent event, User user, @Choices(provider = "choices") Optional<String> type) {

    }
    
    public List<String> choices() {
        return List.of("foo", "bar");
    }

Metadata

Metadata

Assignees

Labels

change:apiThis affects the end user api.type:featureThis is a new feature.

Projects

Status

Accepted

Relationships

None yet

Development

No branches or pull requests

Issue actions