brigadier icon indicating copy to clipboard operation
brigadier copied to clipboard

No response on commands without arguments

Open xxDark opened this issue 6 years ago • 0 comments

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?

xxDark avatar Jan 01 '19 19:01 xxDark