diff options
| author | acdenisSK <[email protected]> | 2018-02-02 13:39:00 +0100 |
|---|---|---|
| committer | acdenisSK <[email protected]> | 2018-02-02 13:39:00 +0100 |
| commit | e814e9aa9b6117defa4f885ef0027e61706112d5 (patch) | |
| tree | f2ca18ec7f9340d268b723bf2eb723521172ac0c /src/builder/create_embed.rs | |
| parent | Add video url specifier for CreateEmbed (#269) (diff) | |
| download | serenity-e814e9aa9b6117defa4f885ef0027e61706112d5.tar.xz serenity-e814e9aa9b6117defa4f885ef0027e61706112d5.zip | |
Inline simple url properties
Diffstat (limited to 'src/builder/create_embed.rs')
| -rw-r--r-- | src/builder/create_embed.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/builder/create_embed.rs b/src/builder/create_embed.rs index 24a7513..c92a610 100644 --- a/src/builder/create_embed.rs +++ b/src/builder/create_embed.rs @@ -175,16 +175,19 @@ impl CreateEmbed { } /// Set the image associated with the embed. This only supports HTTP(S). + #[inline] pub fn image(self, url: &str) -> Self { self.url_object("image", url) } /// Set the video associated with the embed. This only supports HTTP(S). + #[inline] pub fn video(self, url: &str) -> Self { self.url_object("video", url) } /// Set the thumbnail of the embed. This only supports HTTP(S). + #[inline] pub fn thumbnail(self, url: &str) -> Self { self.url_object("thumbnail", url) } |