Skip to content

Commit

Permalink
Add LazyEmbed#setTimestamp(Date)
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Aug 17, 2024
1 parent 306d052 commit aed33d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/xyz/srnyx/lazylibrary/LazyEmbed.java
Original file line number Diff line number Diff line change
Expand Up @@ -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})
*/
Expand Down

0 comments on commit aed33d3

Please sign in to comment.