diff options
| author | Austin Hellyer <[email protected]> | 2016-12-09 17:14:19 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-12-09 17:18:41 -0800 |
| commit | 0ec4dfb785459c0d04c295f84a1c33e71c016eba (patch) | |
| tree | 7c4f12eb940e8b73b47898eec60947d36984562f /tests | |
| parent | Abstract command fields to types (diff) | |
| download | serenity-0ec4dfb785459c0d04c295f84a1c33e71c016eba.tar.xz serenity-0ec4dfb785459c0d04c295f84a1c33e71c016eba.zip | |
Deprecate embed image/thumbnail height/width
The height and width fields for embed images and thumbnails can not be
set - whereas originally there may have been plans to - so deprecate
them and remove in v0.3.0.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_create_embed.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/test_create_embed.rs b/tests/test_create_embed.rs index 93a56a6..e229ee9 100644 --- a/tests/test_create_embed.rs +++ b/tests/test_create_embed.rs @@ -45,10 +45,7 @@ fn from_embed() { .description("This is a cat description") .title("still a funny cat meme") .url("https://i.imgur.com/q9MqLqZ.jpg") - .image(|i| i - .height(426) - .url("https://i.imgur.com/q9MqLqZ.jpg") - .width(448)); + .image(|i| i.url("https://i.imgur.com/q9MqLqZ.jpg")); let built = Value::Object(builder.0); @@ -65,9 +62,7 @@ fn from_embed() { .insert("name", "c") .insert("value", "z"))) .insert_object("image", |o| o - .insert("height", 426) - .insert("url", "https://i.imgur.com/q9MqLqZ.jpg") - .insert("width", 448)) + .insert("url", "https://i.imgur.com/q9MqLqZ.jpg")) .insert("title", "still a funny cat meme") .insert("type", "rich") .insert("url", "https://i.imgur.com/q9MqLqZ.jpg") |