With JDA, I am trying to develop a slash-command on Discord like this:
/command @role1 @role2 @role3...
I want to have an unlimited option of roles, but I can't find any solution to have an array of Role. Have you an idea ?
My actual code:
commands.addCommands(
new CommandData("command", "list of possible roles")
.addOptions(new OptionData(ROLE, "role", "the role"))
);