src/main/java/me/evyn/bot/util/EmbedCreator.java
public static EmbedBuilder newErrorEmbedMessage(User bot, String description) {

        EmbedBuilder eb = new EmbedBuilder();

        eb.setColor(0xd55745)
                .setTitle("Error")
                .setTimestamp(Instant.now())
                .setFooter(bot.getName(), bot.getAvatarUrl());

        if (description.isEmpty()) {
            eb.setDescription("There has been an error (no further explanation)");
        } else {
            eb.setDescription(description);
        }
        return eb;
    }
/**
     * Generates a new EmbedBuilder object with an error message template. Description of error is provided by the
     * String argument
     * @param bot Discord bot user
     * @param description String Description of error message
     * @return EmbedBuilder error embed
     */
Generates a new EmbedBuilder object with an error message template. Description of error is provided by the
String argument
@param bot Discord bot user
@param description String Description of error message
@return EmbedBuilder error embed
Generates a new EmbedBuilder object with an error message template . Description of error is provided by the String argument @param bot Discord bot user @param description String Description of error message @return EmbedBuilder error embed
public static EmbedBuilder newErrorEmbedMessage(User bot, String description) {
        EmbedBuilder eb = new EmbedBuilder();
        eb.setColor(0xd55745)
                .setTitle("Error")
                .setTimestamp(Instant.now())
                .setFooter(bot.getName(), bot.getAvatarUrl());
        if (description.isEmpty()) {
            eb.setDescription("There has been an error (no further explanation)");
        } else {
            eb.setDescription(description);
        }
        return eb;
    }
public static EmbedBuilder newErrorEmbedMessage ( User bot , String description ) { EmbedBuilder eb = new EmbedBuilder ( ) ; eb . setColor ( 0xd55745 ) . setTitle ( "Error" ) . setTimestamp ( Instant . now ( ) ) . setFooter ( bot . getName ( ) , bot . getAvatarUrl ( ) ) ; if ( description . isEmpty ( ) ) { eb . setDescription ( "There has been an error (no further explanation)" ) ; } else { eb . setDescription ( description ) ; } return eb ; }
Generates a new EmbedBuilder object with an error message template.
Generates a new EmbedBuilder object with an error message template .