aboutsummaryrefslogtreecommitdiff
path: root/tests/test_create_embed.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-18 20:55:36 -0800
committerAustin Hellyer <[email protected]>2016-12-18 20:55:36 -0800
commit68c473dd17a2098f97808b3d1f2a200621f67c9d (patch)
tree8b8f930cf3049649ab5a022edc36248f714a8878 /tests/test_create_embed.rs
parentFix a typo in UserId::find docs (diff)
downloadserenity-68c473dd17a2098f97808b3d1f2a200621f67c9d.tar.xz
serenity-68c473dd17a2098f97808b3d1f2a200621f67c9d.zip
Remove image/thumbnail embed builders
When implemented, it was thought that images and thumbnails would be able to have their height/width specified. This isn't the case, and so the image/height methods were deprecated on the builders. Time has passed, so just remove them in favour of direct methods on CreateEmbed instead.
Diffstat (limited to 'tests/test_create_embed.rs')
-rw-r--r--tests/test_create_embed.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_create_embed.rs b/tests/test_create_embed.rs
index ec499e1..be9b82e 100644
--- a/tests/test_create_embed.rs
+++ b/tests/test_create_embed.rs
@@ -43,9 +43,9 @@ fn test_from_embed() {
let builder = CreateEmbed::from(embed)
.colour(0xFF0000)
.description("This is a cat description")
+ .image("https://i.imgur.com/q9MqLqZ.jpg")
.title("still a funny cat meme")
- .url("https://i.imgur.com/q9MqLqZ.jpg")
- .image(|i| i.url("https://i.imgur.com/q9MqLqZ.jpg"));
+ .url("https://i.imgur.com/q9MqLqZ.jpg");
let built = Value::Object(builder.0);