aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-09 20:26:31 -0800
committerAustin Hellyer <[email protected]>2016-11-09 20:26:31 -0800
commit604c8d4450cab6e78faa6ebffd611fa053495c32 (patch)
tree6204016f4510cc3fabaa3f0dc2bddd1c89eb0a22
parentAdd REST error code enum (diff)
downloadserenity-604c8d4450cab6e78faa6ebffd611fa053495c32.tar.xz
serenity-604c8d4450cab6e78faa6ebffd611fa053495c32.zip
Correctly decode Group channel IDs
Group channel IDs are mapped from the `id` key. However, the YAML definition tried to map it to a `channel_id` field without a `from` key. The `from` key of `id` will properly map to `channel_id`.
-rw-r--r--definitions/structs/group.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/definitions/structs/group.yml b/definitions/structs/group.yml
index dc1ead0..62b0029 100644
--- a/definitions/structs/group.yml
+++ b/definitions/structs/group.yml
@@ -3,6 +3,7 @@ name: Group
definition: A group channel, potentially including other users, separate from a server.
fields:
- name: channel_id
+ from: id
type: ChannelId
- name: icon
optional: true