Nostrum.Struct.Embed.put_timestamp

You're seeing just the function put_timestamp, go back to Nostrum.Struct.Embed module for more information.
Link to this function

put_timestamp(embed, value)

View Source

Specs

put_timestamp(t(), timestamp()) :: t()

Puts the given value under :timestamp in embed.

Examples

iex> embed = %Nostrum.Struct.Embed{}
...> Nostrum.Struct.Embed.put_timestamp(embed, "2018-04-21T17:33:51.893000Z")
%Nostrum.Struct.Embed{timestamp: "2018-04-21T17:33:51.893000Z"}