aboutsummaryrefslogtreecommitdiff
path: root/definitions/structs/read_state.yml
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-17 05:38:41 -0800
committerAustin Hellyer <[email protected]>2016-11-17 05:38:41 -0800
commit772aeaf66eb7e0ae4edab5b9d7dfeecdce5bd3f7 (patch)
tree7e6b85765b223f0a4b734f70c15461dad640c092 /definitions/structs/read_state.yml
parentAdd DELETE/PUT guild member role (diff)
downloadserenity-772aeaf66eb7e0ae4edab5b9d7dfeecdce5bd3f7.tar.xz
serenity-772aeaf66eb7e0ae4edab5b9d7dfeecdce5bd3f7.zip
Add a build decoder for u64s with a default
This will fix `ReadState`s failing to decode a `mention_count` if it is not present, as it may be optional. Default to `0`.
Diffstat (limited to 'definitions/structs/read_state.yml')
-rw-r--r--definitions/structs/read_state.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/definitions/structs/read_state.yml b/definitions/structs/read_state.yml
index 3e0c8cd..ef580b6 100644
--- a/definitions/structs/read_state.yml
+++ b/definitions/structs/read_state.yml
@@ -11,5 +11,5 @@ fields:
optional: true
type: string
- name: mention_count
- default: 0
+ default: '0'
type: u64