Skip to content

Commit caf766c

Browse files
committed
Made required changes
1 parent 15fd11f commit caf766c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/javadiscord/javabot/systems/staff_commands/self_roles/RemoveSelfRolesSubcommand.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
public class RemoveSelfRolesSubcommand extends SlashCommand.Subcommand {
2222

2323
public RemoveSelfRolesSubcommand() {
24-
setSubcommandData(new SubcommandData("remove", "Removes all Self-Roles from a specified message.")
24+
setSubcommandData(new SubcommandData("remove-all", "Removes all Self-Roles from a specified message.")
2525
.addOption(OptionType.STRING, "message-id", "Id of the message.", true));
2626
}
2727

2828
@Override
2929
public void execute(SlashCommandInteractionEvent event) {
3030
OptionMapping idMapping = event.getOption("message-id");
3131
if (idMapping == null) {
32-
Responses.error(event, "ID is required.").queue();
32+
Responses.replyMissingArguments(event).queue();
3333
return;
3434
}
3535
event.deferReply(true).queue();

0 commit comments

Comments
 (0)