diff --git a/src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java b/src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java index 8587130..4bd5b62 100644 --- a/src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java +++ b/src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java @@ -637,6 +637,18 @@ public LazyEmbed setTimestamp(@Nullable Long timestamp) { return setTimestamp(timestamp == null ? null : Instant.ofEpochMilli(timestamp)); } + /** + * Sets the timestamp of the embed + * + * @param timestamp the timestamp of the embed + * + * @return this + */ + @NotNull + public LazyEmbed setTimestamp(@Nullable Date timestamp) { + return setTimestamp(timestamp == null ? null : timestamp.getTime()); + } + /** * All possible (defaultable) keys an {@link LazyEmbed embed} can have ({@link LazySettings#embedDefaults}) */