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 27ecb74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ 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 27ecb74

Please sign in to comment.