Skip to content

Commit

Permalink
Fix {Invite,RichInvite}::url tests
Browse files Browse the repository at this point in the history
Add fields in struct instantiation for the new stats fields introduced
by the recent invite stats commit.
  • Loading branch information
Zeyla Hellyer committed May 23, 2017
1 parent 9969be6 commit 61a0a91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/model/invite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
/// # },
/// # };
/// #
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 61a0a91

Please sign in to comment.