Skip to content

Commit

Permalink
fix: Remove optional from example command
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Sep 17, 2023
1 parent d856146 commit 1012e59
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
import dev.triumphteam.cmd.jda.sender.SlashCommandSender;
import net.dv8tion.jda.api.entities.User;

import java.util.Optional;

@Command("sub")
public class ExampleSubCommand {

Expand All @@ -38,7 +36,7 @@ public void first(final SlashCommandSender sender) {
}

@Command("second")
public void second(final SlashCommandSender sender, final User user, final Optional<String> test) {
public void second(final SlashCommandSender sender, final User user, final String test) {
sender.reply("Command sent was /sub second <" + user.getName() + ">").queue();
}
}

0 comments on commit 1012e59

Please sign in to comment.