diff options
| author | Austin Hellyer <[email protected]> | 2016-11-08 10:44:41 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-08 10:44:41 -0800 |
| commit | afc87150f5fcc7e18e7fa41b5cce2eeabfab81ad (patch) | |
| tree | 074cdb28a1955852a9b0ee7231ddcd3f15eff6b3 | |
| parent | Add doc modification script (diff) | |
| download | serenity-afc87150f5fcc7e18e7fa41b5cce2eeabfab81ad.tar.xz serenity-afc87150f5fcc7e18e7fa41b5cce2eeabfab81ad.zip | |
Make all Embed fields except for 'kind' optional
Embeds can return any combination - or a lack of - fields, so they need
to all be optional, except for 'type'.
| -rw-r--r-- | definitions/structs/embed.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/definitions/structs/embed.yml b/definitions/structs/embed.yml index 05cc803..ed832b8 100644 --- a/definitions/structs/embed.yml +++ b/definitions/structs/embed.yml @@ -4,10 +4,12 @@ description: An embed in a message, such as for a URL or an attachment. fields: - name: author description: Author information about the embed. + optional: true type: EmbedAuthor - name: colour description: The color code of the embed. from: color + optional: true type: u64 - name: description description: The description of the embed. This is the long string of text. @@ -16,9 +18,11 @@ fields: - name: fields array: true description: The array of fields of the embed. + optional: true type: EmbedField - name: image description: The image information of the embed. + optional: true type: EmbedImage - name: kind description: > @@ -31,9 +35,11 @@ fields: type: EmbedProvider - name: timestamp description: Timestamp of embed content. + optional: true type: string - name: url description: The URL of the embed. + optional: true type: string - name: thumbnail description: The thumbnail provided for the embed. @@ -45,4 +51,5 @@ fields: type: string - name: video description: The embed's video information. + optional: true type: EmbedVideo |