diff options
| author | Brandon Lucier <[email protected]> | 2018-03-04 03:48:37 -0800 |
|---|---|---|
| committer | alex <[email protected]> | 2018-03-04 12:48:37 +0100 |
| commit | 7e0d9082fe0262c7b4c4668ca1e1208dffa4796f (patch) | |
| tree | e325f2d0d134f0fb3a34a350f554d40f20f69b96 /src/http | |
| parent | Fix formatting (diff) | |
| download | serenity-7e0d9082fe0262c7b4c4668ca1e1208dffa4796f.tar.xz serenity-7e0d9082fe0262c7b4c4668ca1e1208dffa4796f.zip | |
Support sending files with an embed (#285)
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/mod.rs b/src/http/mod.rs index e40b3c6..30d42e9 100644 --- a/src/http/mod.rs +++ b/src/http/mod.rs @@ -1734,6 +1734,7 @@ pub fn send_files<'a, T, It: IntoIterator<Item=T>>(channel_id: u64, files: It, m Value::Bool(true) => request.write_text(&k, "true")?, Value::Number(inner) => request.write_text(&k, inner.to_string())?, Value::String(inner) => request.write_text(&k, inner)?, + Value::Object(inner) => request.write_text(&k, serde_json::to_string(&inner)?)?, _ => continue, }; } |