diff options
| author | Christopher F <[email protected]> | 2016-12-18 22:57:37 -0500 |
|---|---|---|
| committer | Christopher F <[email protected]> | 2016-12-18 22:57:37 -0500 |
| commit | 66546d36749f6c78a4957a616524fab734d5c972 (patch) | |
| tree | 60299d27ddd7bf369f2cb540e4b089f6950aa586 /src/utils/builder/create_embed.rs | |
| parent | Fix framework message position boundary splits (diff) | |
| download | serenity-66546d36749f6c78a4957a616524fab734d5c972.tar.xz serenity-66546d36749f6c78a4957a616524fab734d5c972.zip | |
Add documentation regarding ISO-8601 to embeds
Diffstat (limited to 'src/utils/builder/create_embed.rs')
| -rw-r--r-- | src/utils/builder/create_embed.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/builder/create_embed.rs b/src/utils/builder/create_embed.rs index 16b5b41..e8f2e8d 100644 --- a/src/utils/builder/create_embed.rs +++ b/src/utils/builder/create_embed.rs @@ -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())); |