Reputation: 1
I wanted to create a nick
command, however, I don't know how to add multiple options. The method addOption()
just adds one.
event.getGuild().upsertCommand("nick", "Change the nickname of the specified user").addOption(OptionType.USER,"nicknameuser", "Specified User", true).queue();
Upvotes: 0
Views: 848
Reputation: 1
How about to call addOption again after using addOption?
event.getGuild().upsertCommand("nick", "Change the nickname of the specified user")
.addOption(OptionType.USER, "nicknameuser", "Specified User", true)
.addOption(OptionType.STRING, "search", "Search the user with a string", true)
.queue();
like this
Upvotes: 0