aboutsummaryrefslogtreecommitdiff
path: root/src/utils/builder/create_embed.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-29 20:51:10 -0800
committerAustin Hellyer <[email protected]>2016-11-29 22:27:59 -0800
commit93b990d8d1bc9df69b8e27a3db61da570822aad6 (patch)
tree6305cf635df90681527a8e736f65ff19f21fd8bc /src/utils/builder/create_embed.rs
parentAdd more shiny readme badges (diff)
downloadserenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.tar.xz
serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.zip
Clean up the codebase
Diffstat (limited to 'src/utils/builder/create_embed.rs')
-rw-r--r--src/utils/builder/create_embed.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/utils/builder/create_embed.rs b/src/utils/builder/create_embed.rs
index 0b0322c..369784f 100644
--- a/src/utils/builder/create_embed.rs
+++ b/src/utils/builder/create_embed.rs
@@ -349,39 +349,3 @@ impl Default for CreateEmbedThumbnail {
CreateEmbedThumbnail(ObjectBuilder::new())
}
}
-
-/// A builder to create a fake [`Embed`] object's video, for use with the
-/// [`CreateEmbed::video`] method.
-///
-/// Requires that you specify a [`url`].
-///
-/// [`Embed`]: ../../model/struct.Embed.html
-/// [`CreateEmbed::video`]: struct.CreateEmbed.html#method.video
-/// [`url`]: #method.url
-pub struct CreateEmbedVideo(pub ObjectBuilder);
-
-impl CreateEmbedVideo {
- /// Set the height of the video, in pixels.
- pub fn height(self, height: u64) -> Self {
- CreateEmbedVideo(self.0.insert("height", height))
- }
-
- /// Set the source URL of the video.
- ///
- /// _Must_ be specified.
- pub fn url(self, url: &str) -> Self {
- CreateEmbedVideo(self.0.insert("url", url))
- }
-
- /// Set the width of the video, in pixels.
- pub fn width(self, width: &str) -> Self {
- CreateEmbedVideo(self.0.insert("width", width))
- }
-}
-
-impl Default for CreateEmbedVideo {
- /// Creates a builder with no default values.
- fn default() -> CreateEmbedVideo {
- CreateEmbedVideo(ObjectBuilder::new())
- }
-}