Bat/src/main/java/cc/fascinated/bat/common/EmbedUtils.java
Liam aec2fe1c2b
All checks were successful
Deploy to Dokku / docker (ubuntu-latest) (push) Successful in 40s
add avatar command
2024-06-26 02:46:27 +01:00

46 lines
1.0 KiB
Java

package cc.fascinated.bat.common;
import lombok.experimental.UtilityClass;
import net.dv8tion.jda.api.EmbedBuilder;
import java.time.LocalDateTime;
/**
* @author Fascinated (fascinated7)
*/
@UtilityClass
public class EmbedUtils {
/**
* Builds a generic embed
*
* @return the embed builder
*/
public static EmbedBuilder genericEmbed() {
return new EmbedBuilder()
.setTimestamp(LocalDateTime.now())
.setColor(Colors.DEFAULT);
}
/**
* Builds an error embed
*
* @return the embed builder
*/
public static EmbedBuilder errorEmbed() {
return new EmbedBuilder()
.setTimestamp(LocalDateTime.now())
.setColor(Colors.ERROR);
}
/**
* Builds a success embed
*
* @return the embed builder
*/
public static EmbedBuilder successEmbed() {
return new EmbedBuilder()
.setTimestamp(LocalDateTime.now())
.setColor(Colors.SUCCESS);
}
}