diff --git a/pom.xml b/pom.xml
index 3496010..c223e68 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
xyz.etztech
javacord
jar
- 0.0.1
+ 0.0.2
diff --git a/src/main/java/xyz/etztech/embed/Embed.java b/src/main/java/xyz/etztech/embed/Embed.java
index 583cf92..324b595 100644
--- a/src/main/java/xyz/etztech/embed/Embed.java
+++ b/src/main/java/xyz/etztech/embed/Embed.java
@@ -23,20 +23,18 @@ public class Embed {
private Author author;
private List fields;
- public static Embed builder() {
- Embed embed = new Embed();
- embed.content = "";
- embed.title = "";
- embed.description = "";
- embed.url = "";
- embed.color = 0;
- embed.timestamp = null;
- embed.footer = null;
- embed.thumbnail = null;
- embed.image = null;
- embed.author = null;
- embed.fields = new ArrayList<>();
- return embed;
+ public Embed() {
+ this.content = "";
+ this.title = "";
+ this.description = "";
+ this.url = "";
+ this.color = 0;
+ this.timestamp = null;
+ this.footer = null;
+ this.thumbnail = null;
+ this.image = null;
+ this.author = null;
+ this.fields = new ArrayList<>();
}
public Embed content(String content) {
diff --git a/src/test/java/Test.java b/src/test/java/Test.java
index bf4140c..9ad6830 100644
--- a/src/test/java/Test.java
+++ b/src/test/java/Test.java
@@ -2,11 +2,14 @@ import xyz.etztech.embed.Author;
import xyz.etztech.embed.Embed;
import xyz.etztech.embed.Webhook;
+import java.time.OffsetDateTime;
+
public class Test {
public static void main(String[] args) {
- Embed embed = Embed.builder()
+ Embed embed = new Embed()
.color(3306460)
+ .timestamp(OffsetDateTime.now())
.description("Etzelia found some \"diamond\" ore")
.author(new Author("Etzelia", "", "https://minotar.net/helm/Etzelia/100.png", ""));
Webhook webhook = new Webhook("@here", embed);