Skip to content
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

No response on commands without arguments #51

Open
xxDark opened this issue Jan 1, 2019 · 0 comments
Open

No response on commands without arguments #51

xxDark opened this issue Jan 1, 2019 · 0 comments

Comments

@xxDark
Copy link

xxDark commented Jan 1, 2019

commandDispatcher.register(Commands.literal(".ping") .executes(c -> { c.getSource() .getChannel().sendMessage("Pong!"); return 1; }) );

And, using this code:
CommandNode<DiscordCommandSource> commandNode = Iterables.getLast(results.getContext().getNodes().keySet()); Map<CommandNode<DiscordCommandSource>, String> map = commandDispatcher.getSmartUsage(commandNode, s.getSource());
It does not return an information about commands without arguments. Am I doing something wrong?

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

No branches or pull requests

1 participant