Skip to content

Commit

Permalink
Add required flag to the code parameter in the /jshell-aws command
Browse files Browse the repository at this point in the history
  • Loading branch information
surajkumar committed Sep 13, 2024
1 parent 86fc982 commit b18ac90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ public class JShellAWSCommand extends SlashCommandAdapter {
*/
public JShellAWSCommand(JShellService jShellService) {
super("jshell-aws", "Execute Java code in Discord!", CommandVisibility.GUILD);
getData().addOption(OptionType.STRING, CODE_PARAMETER, "The code to execute using JShell");
getData().addOption(OptionType.STRING, CODE_PARAMETER, "The code to execute using JShell",
true);
this.jShellService = jShellService;
}

Expand Down

0 comments on commit b18ac90

Please sign in to comment.