src/main/java/me/evyn/bot/commands/CommandHandler.java
public static Command findCommand(String cmdName) {
        Optional<Command> matching = commands.stream()
                .filter(command -> command.getName().equals(cmdName) || command.getAliases().contains(cmdName))
                .findFirst();

        return matching.orElse(null);
    }
/**
     * Attempts to find provided command name in commands list. Returns command if found, else returns null.
     * @param cmdName Command to find
     * @return Command found command
     */
Attempts to find provided command name in commands list. Returns command if found, else returns null.
@param cmdName Command to find
@return Command found command
Attempts to find provided command name in commands list . Returns command if found else returns null . @param cmdName Command to find @return Command found command
public static Command findCommand(String cmdName) {
        Optional<Command> matching = commands.stream()
                .filter(command -> command.getName().equals(cmdName) || command.getAliases().contains(cmdName))
                .findFirst();
        return matching.orElse(null);
    }
public static Command findCommand ( String cmdName ) { Optional < Command > matching = commands . stream ( ) . filter ( command -> command . getName ( ) . equals ( cmdName ) || command . getAliases ( ) . contains ( cmdName ) ) . findFirst ( ) ; return matching . orElse ( null ) ; }
Attempts to find provided command name in commands list.
Attempts to find provided command name in commands list .