Method WithTimestamp
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
WithTimestamp(DateTimeOffset?)
Sets the embed's timestamp.
public DiscordEmbedBuilder WithTimestamp(DateTimeOffset? timestamp)
Parameters
timestamp
DateTimeOffset?Timestamp to set.
Returns
- DiscordEmbedBuilder
This embed builder.
WithTimestamp(DateTime?)
Sets the embed's timestamp.
public DiscordEmbedBuilder WithTimestamp(DateTime? timestamp)
Parameters
timestamp
DateTime?Timestamp to set.
Returns
- DiscordEmbedBuilder
This embed builder.
WithTimestamp(ulong)
Sets the embed's timestamp based on a snowflake.
public DiscordEmbedBuilder WithTimestamp(ulong snowflake)
Parameters
snowflake
ulongSnowflake to calculate timestamp from.
Returns
- DiscordEmbedBuilder
This embed builder.