aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-15 10:18:54 -0800
committerAustin Hellyer <[email protected]>2016-11-15 10:18:54 -0800
commit6ec3365abfbeaaa0364febd2a5a2820a545fd1f0 (patch)
treef38c636866699a3af6b9d57dd56bdce8d987a85f
parentAdd a message builder for Context::send_message (diff)
downloadserenity-6ec3365abfbeaaa0364febd2a5a2820a545fd1f0.tar.xz
serenity-6ec3365abfbeaaa0364febd2a5a2820a545fd1f0.zip
Embed Author: everything but 'name' is optional
Fixes decoding the following embed snippet: ```json "author": { "url": "https://www.facebook.com/oneplusofficial/", "name": "OnePlus" } ```
-rw-r--r--definitions/structs/embed_author.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/definitions/structs/embed_author.yml b/definitions/structs/embed_author.yml
index 1e649f9..b0c1fd2 100644
--- a/definitions/structs/embed_author.yml
+++ b/definitions/structs/embed_author.yml
@@ -8,12 +8,14 @@ description: >
fields:
- name: icon_url
description: The URL of the author icon. Note this only supports HTTP(s).
+ optional: true
type: string
- name: name
description: The name of the author.
type: string
- name: proxy_icon_url
description: A proxied URL of the author icon.
+ optional: true
type: string
- name: url
description: The URL of the author.