add auto roles and clean up how embeds are made

This commit is contained in:
Lee
2024-06-25 13:55:54 +01:00
parent 679143c331
commit 0d1eb3089a
29 changed files with 577 additions and 106 deletions

View File

@ -14,12 +14,10 @@ public class EmbedUtils {
/**
* Builds a generic embed
*
* @param description the description of the embed
* @return the embed builder
*/
public static EmbedBuilder buildGenericEmbed(String description) {
public static EmbedBuilder buildGenericEmbed() {
return new EmbedBuilder()
.setDescription(description)
.setTimestamp(LocalDateTime.now())
.setColor(Colors.DEFAULT);
}
@ -27,12 +25,10 @@ public class EmbedUtils {
/**
* Builds an error embed
*
* @param description the description of the embed
* @return the embed builder
*/
public static EmbedBuilder buildErrorEmbed(String description) {
public static EmbedBuilder buildErrorEmbed() {
return new EmbedBuilder()
.setDescription(description)
.setTimestamp(LocalDateTime.now())
.setColor(Colors.ERROR);
}
@ -40,12 +36,10 @@ public class EmbedUtils {
/**
* Builds a success embed
*
* @param description the description of the embed
* @return the embed builder
*/
public static EmbedBuilder buildSuccessEmbed(String description) {
public static EmbedBuilder buildSuccessEmbed() {
return new EmbedBuilder()
.setDescription(description)
.setTimestamp(LocalDateTime.now())
.setColor(Colors.SUCCESS);
}

View File

@ -8,6 +8,7 @@ import org.springframework.data.annotation.Transient;
/**
* @author Fascinated (fascinated7)
*/
@AllArgsConstructor
@Getter @Setter
public class Profile {
/**
@ -15,9 +16,5 @@ public class Profile {
*/
private String profileKey;
public Profile(String profileKey) {
this.profileKey = profileKey;
}
public Profile() {}
}