Method WithTimestamp
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
WithTimestamp(DateTimeOffset?)
Sets the embed's timestamp.
public DiscordEmbedBuilder WithTimestamp(DateTimeOffset? timestamp)
Parameters
timestampDateTimeOffset?Timestamp to set.
Returns
- DiscordEmbedBuilder
This embed builder.
WithTimestamp(DateTime?)
Sets the embed's timestamp.
public DiscordEmbedBuilder WithTimestamp(DateTime? timestamp)
Parameters
timestampDateTime?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
snowflakeulongSnowflake to calculate timestamp from.
Returns
- DiscordEmbedBuilder
This embed builder.