Skip to content

Commit d3f3d83

Browse files
Merge #83
83: various fixes r=Emilgardis a=Emilgardis Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents d745b05 + 195e2bc commit d3f3d83

File tree

6 files changed

+35
-32
lines changed

6 files changed

+35
-32
lines changed

Cargo.lock

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ twitch_oauth2 = { version = "0.5.0-alpha.5", optional = true, path = "twitch_oau
2121
serde = { version = "1.0.123", features = ["derive"] }
2222
serde_derive = "1.0.123"
2323
async-trait = { version = "0.1.42", optional = true }
24-
serde_json = { version = "1.0.63", optional = true }
24+
serde_json = { version = "1.0.64", optional = true }
2525
serde_repr = "0.1.6"
2626
reqwest = { version = "0.11.0", optional = true }
2727
surf = { version = "2.1.0", optional = true }
@@ -68,7 +68,7 @@ tokio = { version = "1.2.0", features = ["rt-multi-thread", "macros"] }
6868
dotenv = "0.15.0"
6969
futures = "0.3.13"
7070
serde_cbor = "0.11.1"
71-
serde_json = "1.0.63"
71+
serde_json = "1.0.64"
7272

7373

7474
[build-dependencies]

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
"#;

src/eventsub/stream/online.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub struct StreamOnlineV1Payload {
3131
pub broadcaster_user_login: types::UserName,
3232
/// The broadcaster’s user display name.
3333
pub broadcaster_user_name: types::DisplayName,
34-
/// The event id.
34+
/// The id of the stream.
3535
pub id: String,
3636
/// The stream type. Valid values are: live, playlist, watch_party, premiere, rerun.
3737
#[serde(rename = "type")]

src/helix/channels/modify_channel_information.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ pub struct ModifyChannelInformationRequest {
7171
#[derive(PartialEq, typed_builder::TypedBuilder, Deserialize, Serialize, Clone, Debug)]
7272
#[non_exhaustive]
7373
pub struct ModifyChannelInformationBody {
74-
/// Current game ID being played on the channel
74+
/// Current game ID being played on the channel. Use “0” or “” (an empty string) to unset the game.
7575
#[builder(default, setter(into, strip_option))]
7676
pub game_id: Option<types::CategoryId>,
7777
/// Language of the channel
7878
#[builder(default, setter(into))]
7979
pub broadcaster_language: Option<String>,
80-
/// Title of the stream
80+
/// Title of the stream. Value must not be an empty string.
8181
#[builder(default, setter(into, strip_option))]
8282
pub title: Option<String>,
8383
}

src/helix/users/get_users.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub struct GetUsersRequest {
6161
pub struct User {
6262
/// User’s broadcaster type: "partner", "affiliate", or "".
6363
pub broadcaster_type: Option<types::BroadcasterType>,
64-
/// Account creation time
64+
/// Date when the user was created.
6565
pub created_at: types::Timestamp,
6666
/// User’s channel description.
6767
pub description: Option<String>,

0 commit comments

Comments
 (0)