aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoracdenisSK <[email protected]>2018-02-02 13:39:00 +0100
committerZeyla Hellyer <[email protected]>2018-02-04 07:54:31 -0800
commitc7a046e7921c900e14ea56a0d1ee7c8a27e94d84 (patch)
tree425c4d6da5a0d679cf5b136beda5f57feadafd3b /src
parentAdd video url specifier for CreateEmbed (#269) (diff)
downloadserenity-c7a046e7921c900e14ea56a0d1ee7c8a27e94d84.tar.xz
serenity-c7a046e7921c900e14ea56a0d1ee7c8a27e94d84.zip
Inline simple url properties
Diffstat (limited to 'src')
-rw-r--r--src/builder/create_embed.rs3
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)
}