src/main/java/me/evyn/bot/commands/CommandHandler.java
public void run(MessageReceivedEvent event, String prefix, String cmd, String[] args) {

        Command command = CommandHandler.findCommand(cmd);

        if (command == null) {
            event.getChannel()
                    .sendMessage("Error: That command was not found.")
                    .queue();
        } else {
            boolean embed = true;
            if (event.isFromGuild()) {
                if (!event.getGuild().getSelfMember().hasPermission(Permission.MESSAGE_EMBED_LINKS)) {
                    embed = false;
                } else {
                    embed = DataSourceCollector.getGuildEmbed(event.getGuild().getIdLong());
                }
            }
            command.run(event, prefix, embed, args);
        }
    }
/**
     * Attempts to find command in list and run
     * @param event Discord API Message Event
     * @param prefix Bot prefix
     * @param cmd Command to run
     * @param args Command arguments
     */
Attempts to find command in list and run
@param event Discord API Message Event
@param prefix Bot prefix
@param cmd Command to run
@param args Command arguments
Attempts to find command in list and run @param event Discord API Message Event @param prefix Bot prefix @param cmd Command to run @param args Command arguments
public void run(MessageReceivedEvent event, String prefix, String cmd, String[] args) {
        Command command = CommandHandler.findCommand(cmd);
        if (command == null) {
            event.getChannel()
                    .sendMessage("Error: That command was not found.")
                    .queue();
        } else {
            boolean embed = true;
            if (event.isFromGuild()) {
                if (!event.getGuild().getSelfMember().hasPermission(Permission.MESSAGE_EMBED_LINKS)) {
                    embed = false;
                } else {
                    embed = DataSourceCollector.getGuildEmbed(event.getGuild().getIdLong());
                }
            }
            command.run(event, prefix, embed, args);
        }
    }
public void run ( MessageReceivedEvent event , String prefix , String cmd , String [ ] args ) { Command command = CommandHandler . findCommand ( cmd ) ; if ( command == null ) { event . getChannel ( ) . sendMessage ( "Error: That command was not found." ) . queue ( ) ; } else { boolean embed = true ; if ( event . isFromGuild ( ) ) { if ( ! event . getGuild ( ) . getSelfMember ( ) . hasPermission ( Permission . MESSAGE_EMBED_LINKS ) ) { embed = false ; } else { embed = DataSourceCollector . getGuildEmbed ( event . getGuild ( ) . getIdLong ( ) ) ; } } command . run ( event , prefix , embed , args ) ; } }
Attempts to find command in list and run
 @param event Discord API Message Event
 @param prefix Bot prefix
 @param cmd Command to run
 @param args Command arguments
Attempts to find command in list and run @param event Discord API Message Event @param prefix Bot prefix @param cmd Command to run @param args Command arguments