Skip to content

Commit

Permalink
🐛 Changed default response provider in SimpleCommand to be ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed Apr 26, 2024
1 parent b2b53c3 commit 440328a
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public abstract class SimpleCommand {
*/
@Getter
@Setter
private SlashCommandResponseProvider responseProvider = new DefaultCommandProvider();
private SlashCommandResponseProvider responseProvider = DefaultCommandProvider.EPHEMERAL;

/**
* List of {@link com.greazi.discordbotfoundation.command.checkers.SlashCommandChecker checkers} that will be used
Expand Down Expand Up @@ -479,6 +479,14 @@ public void addSubcommand(final SimpleCommand subcommand) {
this.subcommandsList.add(subcommand);
}

/**
* Adds a new checker to the command
* @param checker The checker to add
*/
public void addChecker(final SlashCommandChecker checker) {
this.checkers.add(checker);
}

/**
* Set the time before the same user can execute this command again
*
Expand Down

0 comments on commit 440328a

Please sign in to comment.