// Path: src/main/java/bluebot/utils/Command.java
// public interface Command {
//     public boolean called(String[] args, MessageReceivedEvent event);
//     public void action(String[] args, MessageReceivedEvent event);
//     public String help();
//     public void executed(boolean success, MessageReceivedEvent event);
// }


import bluebot.utils.Command;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.internal.utils.PermissionUtil;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import static java.time.temporal.ChronoUnit.DAYS;

package bluebot.commands.utility;




/**
 * @file ClearCommand.java
 * @author Blue
 * @version 0.3
 * @brief The clear command is used to delete the number of messages given in parameter since the last message posted.
 */

public class ClearCommand implements Command {

    private final String HELP = "The command `clear` deletes the number of messages given in parameter." +
                                "\nThis command requires the manage messages permission." +
                                " \n\nUsage : `!clear number (1 to 99)`";
    private boolean permissionFail = false;
    @Override
// Path: src/main/java/bluebot/utils/Command.java
// public interface Command {
//     public boolean called(String[] args, MessageReceivedEvent event);
//     public void action(String[] args, MessageReceivedEvent event);
//     public String help();
//     public void executed(boolean success, MessageReceivedEvent event);
// }


// Path: src/main/java/bluebot/commands/utility/ClearCommand.java
import bluebot.utils.Command;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.internal.utils.PermissionUtil;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import static java.time.temporal.ChronoUnit.DAYS;


package bluebot.commands.utility;




/**
 * @file ClearCommand.java
 * @author Blue
 * @version 0.3
 * @brief The clear command is used to delete the number of messages given in parameter since the last message posted.
 */

public class ClearCommand implements Command {

    private final String HELP = "The command `clear` deletes the number of messages given in parameter." +
                                "\nThis command requires the manage messages permission." +
                                " \n\nUsage : `!clear number (1 to 99)`";
    private boolean permissionFail = false;
    @Override
    public boolean called(String[] args, MessageReceivedEvent event) {