Loso
Loso

Reputation: 84

How does autoComplete work with Options for commands?

I want the user to be able to auto complete the finishDate value with "MM/dd/yyyy HH" But i cannot find it anywhere on how to set it up.

This is what the command looks like rn:

jda.getGuildById(guild.getId()).upsertCommand("lottery", "Creates a lottery in the current or selected channel.")
     .addOption(OptionType.STRING, "reward", "The reward for the lottey winners", true)
     .addOption(OptionType.STRING, "finishDate", "Use format MM/dd/yyyy HH", true, true);

Upvotes: 0

Views: 447

Answers (0)

Related Questions