Skip to content

Commit 195e2bc

Browse files
committed
add followed_at
1 parent 33b75c5 commit 195e2bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/eventsub/channel/follow.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ pub struct ChannelFollowV1Payload {
3737
pub user_name: types::DisplayName,
3838
/// The user login for the user now following the specified channel.
3939
pub user_login: types::UserName,
40+
/// RFC3339 timestamp of when the follow occurred.
41+
pub followed_at: types::Timestamp,
4042
}
4143

4244
#[test]
@@ -63,7 +65,8 @@ fn parse_payload() {
6365
"user_name": "Cool_User",
6466
"broadcaster_user_id": "1337",
6567
"broadcaster_user_login": "cooler_user",
66-
"broadcaster_user_name": "Cooler_User"
68+
"broadcaster_user_name": "Cooler_User",
69+
"followed_at": "2020-07-15T18:16:11.17106713Z"
6770
}
6871
}
6972
"#;

0 commit comments

Comments
 (0)