-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(eventsub): add remaining channel.*
topics
#457
Conversation
/// The broadcaster login. | ||
pub moderator_user_login: types::UserName, | ||
/// The action being taken | ||
#[serde(flatten)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit unfortunate as it means that serde will parse unknown fields into some intermediate map, which is then passed to ActionV1::deserialize
, because it doesn't know the fields of ActionV1
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
I think we could replace the various tests with snapshots instead with insta
, can be done later
#[cfg_attr(feature = "deny_unknown_fields", serde(deny_unknown_fields))] | ||
#[non_exhaustive] | ||
pub struct ChannelModeratorAddV1 { | ||
/// The broadcaster user ID for the channel you want to get moderator addition notifications for. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this can be worded better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about "The user ID for the channel you want to get moderator addition notifications for."? Or maybe even drop the "you want to ..." part? The text from the Twitch docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the part im struggling with is moderator addition
, but it's fine, just a nit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used "Get notifications when a {mod/vip} is {added/removed} in this channel".
twitch_oauth2::Scope::ChannelReadGuestStar, | ||
twitch_oauth2::Scope::ChannelManageGuestStar, | ||
twitch_oauth2::Scope::ModeratorReadGuestStar, | ||
twitch_oauth2::Scope::ModeratorManageGuestStart, // XXX: this is wrong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
866de1f
to
f24439c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update twitch_oauth2 to 0.15.0 and fix the typo, then feel free to merge this!
f24439c
to
2172a22
Compare
2172a22
to
00248c0
Compare
Finally, all
channel
topics... I hope there aren't many typos and copy-paste errors.There's one typo in
twitch-oauth2
I noticed, though 😔