Add shorthand for getting Color int
Signed-off-by: Etzelia <etzelia@hotmail.com>grief
parent
3494a28ac5
commit
57cd360753
|
@ -24,6 +24,10 @@ public enum Color {
|
|||
return hex;
|
||||
}
|
||||
|
||||
public int getInt() {
|
||||
return hexToInt(hex);
|
||||
}
|
||||
|
||||
public ChatColor getChatColor() {
|
||||
return chatColor;
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ public class MainCommand implements CommandExecutor {
|
|||
JsonArray embeds = new JsonArray();
|
||||
|
||||
JsonObject embed = new JsonObject();
|
||||
embed.addProperty("color", Color.hexToInt("#3273dc"));
|
||||
embed.addProperty("color", Color.PRIMARY.getInt());
|
||||
embed.addProperty("description", "Test Message");
|
||||
|
||||
JsonObject author = new JsonObject();
|
||||
|
|
Loading…
Reference in New Issue