forked from Fascinated/Bat
fix shutdown db saving (fr this time) and fixed embed color parsing
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package cc.fascinated.bat.features.welcomer;
|
||||
|
||||
import cc.fascinated.bat.common.HexColorUtils;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NonNull;
|
||||
@ -44,7 +45,7 @@ public class WelcomerEmbed {
|
||||
embedBuilder.setTitle(WelcomerPlaceholders.replaceAllPlaceholders(title, replacements));
|
||||
}
|
||||
embedBuilder.setDescription(WelcomerPlaceholders.replaceAllPlaceholders(description, replacements));
|
||||
embedBuilder.setColor(Integer.parseInt(color, 16));
|
||||
embedBuilder.setColor(HexColorUtils.hexToColor(color));
|
||||
return embedBuilder;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user