Skip to content

Commit

Permalink
Add documentation regarding ISO-8601 to embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
foxbot committed Dec 19, 2016
1 parent c01f238 commit 66546d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/builder/create_embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ impl CreateEmbed {
}

/// Set the timestamp.
///
/// **Note:** This timestamp must be in ISO-8601 format.
///
/// # Examples
///
/// `2017-01-03T23:00:00Z`
/// `2004-06-08T16:04:23-05:00`
pub fn timestamp(mut self, timestamp: &str) -> Self {
self.0.insert("timestamp".to_owned(), Value::String(timestamp.to_owned()));

Expand Down

0 comments on commit 66546d3

Please sign in to comment.