@@ -62,11 +62,11 @@ public RoleSelectCommand() {
6262
6363 SubcommandData allRoles =
6464 new SubcommandData (ALL_OPTION , "Lists all the rolls in the server for users" )
65- .addOptions (messageOptions );
65+ .addOptions (messageOptions );
6666
6767 SubcommandData selectRoles =
6868 new SubcommandData (CHOOSE_OPTION , "Choose the roles for users to select" )
69- .addOptions (messageOptions );
69+ .addOptions (messageOptions );
7070
7171 getData ().addSubcommands (allRoles , selectRoles );
7272 }
@@ -100,9 +100,9 @@ public void onSlashCommand(@NotNull SlashCommandEvent event) {
100100 String description = handleOption (descriptionOption );
101101
102102 event .replyEmbeds (makeEmbed (title , description ))
103- .addActionRow (menu .build ())
104- .setEphemeral (ephemeral )
105- .queue ();
103+ .addActionRow (menu .build ())
104+ .setEphemeral (ephemeral )
105+ .queue ();
106106 }
107107
108108 /**
@@ -115,8 +115,8 @@ public void onSlashCommand(@NotNull SlashCommandEvent event) {
115115 * @param minValues the minimum number of selections. nullable {@link Integer}
116116 */
117117 private static void addMenuOptions (@ NotNull SlashCommandEvent event ,
118- @ NotNull SelectionMenu .Builder menu , @ NotNull String placeHolder ,
119- @ Nullable Integer minValues ) {
118+ @ NotNull SelectionMenu .Builder menu , @ NotNull String placeHolder ,
119+ @ Nullable Integer minValues ) {
120120
121121 Role highestBotRole =
122122 Objects .requireNonNull (event .getGuild ()).getSelfMember ().getRoles ().get (1 );
@@ -149,7 +149,7 @@ private static void addMenuOptions(@NotNull SlashCommandEvent event,
149149 * @return the formatted embed {@link MessageEmbed}
150150 */
151151 private static @ NotNull MessageEmbed makeEmbed (@ Nullable String title ,
152- @ Nullable String description ) {
152+ @ Nullable String description ) {
153153
154154 if (title == null ) {
155155 title = "Select your roles" ;
@@ -194,8 +194,8 @@ public void onSelectionMenu(@NotNull SelectionMenuEvent event, @NotNull List<Str
194194 }
195195
196196 event .replyEmbeds (event .getMessage ().getEmbeds ().get (0 ))
197- .addActionRow (menu .build ())
198- .queue ();
197+ .addActionRow (menu .build ())
198+ .queue ();
199199
200200 return ;
201201 }
@@ -233,4 +233,4 @@ public void onSelectionMenu(@NotNull SelectionMenuEvent event, @NotNull List<Str
233233 return null ;
234234 }
235235 }
236- }
236+ }
0 commit comments