diff options
| author | Austin Hellyer <[email protected]> | 2016-11-29 20:51:10 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-29 22:27:59 -0800 |
| commit | 93b990d8d1bc9df69b8e27a3db61da570822aad6 (patch) | |
| tree | 6305cf635df90681527a8e736f65ff19f21fd8bc /src/utils/builder | |
| parent | Add more shiny readme badges (diff) | |
| download | serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.tar.xz serenity-93b990d8d1bc9df69b8e27a3db61da570822aad6.zip | |
Clean up the codebase
Diffstat (limited to 'src/utils/builder')
| -rw-r--r-- | src/utils/builder/create_embed.rs | 36 | ||||
| -rw-r--r-- | src/utils/builder/mod.rs | 1 |
2 files changed, 0 insertions, 37 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()) - } -} diff --git a/src/utils/builder/mod.rs b/src/utils/builder/mod.rs index bc8a20d..497d309 100644 --- a/src/utils/builder/mod.rs +++ b/src/utils/builder/mod.rs @@ -23,7 +23,6 @@ pub use self::create_embed::{ CreateEmbedField, CreateEmbedImage, CreateEmbedThumbnail, - CreateEmbedVideo, }; pub use self::create_invite::CreateInvite; pub use self::create_message::CreateMessage; |