Skip to content

Commit

Permalink
Inline simple url properties
Browse files Browse the repository at this point in the history
  • Loading branch information
arqunis committed Feb 2, 2018
1 parent 2e1eb4c commit e814e9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/builder/create_embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e814e9a

Please sign in to comment.