diff options
| author | Zeyla Hellyer <[email protected]> | 2017-05-22 17:30:31 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-05-22 17:30:31 -0700 |
| commit | 61a0a9103d94363376dcbe2061d1ef956d1d6b19 (patch) | |
| tree | 9aeb9a0b8af2d3d9344ac1ec686c75078d982bb0 /src | |
| parent | Restructure modules (diff) | |
| download | serenity-61a0a9103d94363376dcbe2061d1ef956d1d6b19.tar.xz serenity-61a0a9103d94363376dcbe2061d1ef956d1d6b19.zip | |
Fix {Invite,RichInvite}::url tests
Add fields in struct instantiation for the new stats fields introduced
by the recent invite stats commit.
Diffstat (limited to 'src')
| -rw-r--r-- | src/model/invite.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/model/invite.rs b/src/model/invite.rs index a1c059e..1bec6ef 100644 --- a/src/model/invite.rs +++ b/src/model/invite.rs @@ -121,6 +121,8 @@ impl Invite { /// # use serenity::model::*; /// # /// # let invite = Invite { + /// # approximate_member_count: Some(1812), + /// # approximate_presence_count: Some(717), /// # code: "WxZumR".to_owned(), /// # channel: InviteChannel { /// # id: ChannelId(1), @@ -132,6 +134,8 @@ impl Invite { /// # icon: None, /// # name: "bar".to_owned(), /// # splash_hash: None, + /// # text_channel_count: Some(7), + /// # voice_channel_count: Some(3), /// # }, /// # }; /// # @@ -302,6 +306,8 @@ impl RichInvite { /// # icon: None, /// # name: "baz".to_owned(), /// # splash_hash: None, + /// # text_channel_count: None, + /// # voice_channel_count: None, /// # }, /// # inviter: User { /// # avatar: None, |