setTimestamp method

EmbedBuilder setTimestamp({
  1. DateTime? dateTime,
})

Set the timestamp field and return this

final embed = EmbedBuilder()
  .setTimestamp();

You can define an older or future timestamp

DateTime date = DateTime.now().add(DateTime(days: 5));
final embed = EmbedBuilder()
  .setTimestamp(dateTime: date);

Implementation

EmbedBuilder setTimestamp ({ DateTime? dateTime }) {
  timestamp = dateTime ?? DateTime.now();
  return this;
}