diff options
| author | Austin Hellyer <[email protected]> | 2017-01-27 14:28:33 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-27 14:28:33 -0800 |
| commit | 0b9bf91f62eef85a4eca703902077f4c04b3b6d1 (patch) | |
| tree | c66cc0a63c36f4db267589d0b69170b4c424f7fc /src/model/user.rs | |
| parent | Don't re-request gateway URL when autosharding (diff) | |
| download | serenity-0b9bf91f62eef85a4eca703902077f4c04b3b6d1.tar.xz serenity-0b9bf91f62eef85a4eca703902077f4c04b3b6d1.zip | |
Register the 'status' setting for users
Diffstat (limited to 'src/model/user.rs')
| -rw-r--r-- | src/model/user.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/model/user.rs b/src/model/user.rs index 961a54e..8473623 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -9,6 +9,7 @@ use super::{ GuildInfo, Member, Message, + OnlineStatus, PrivateChannel, RoleId, UserSettings, @@ -453,6 +454,7 @@ impl UserSettings { restricted_guilds: remove(&mut map, "restricted_guilds").and_then(|v| decode_array(v, GuildId::decode))?, show_current_game: req!(remove(&mut map, "show_current_game")?.as_bool()), theme: remove(&mut map, "theme").and_then(into_string)?, + status: remove(&mut map, "status").and_then(OnlineStatus::decode_str)?, }).map(Some) } } |