Skip to content

Commit 7c1ed8c

Browse files
Merge #82
82: add new moderation scopes r=Emilgardis a=Emilgardis new scopes! `moderator:manage:automod_settings`, `moderator:manage:banned_users`, `moderator:manage:blocked_terms`, `moderator:manage:chat_settings`, `moderator:read:automod_settings`, `moderator:read:blocked_terms` and `moderator:read:chat_settings` Co-authored-by: Emil Gardström <emil.gardstrom@gmail.com>
2 parents 761e47c + 9019314 commit 7c1ed8c

File tree

3 files changed

+54
-41
lines changed

3 files changed

+54
-41
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66

77
[Commits](https://github.com/Emilgardis/twitch_oauth2/compare/v0.6.0...Unreleased)
88

9+
### Added
10+
11+
* Added new scopes `moderator:manage:automod_settings`, `moderator:manage:banned_users`,
12+
`moderator:manage:blocked_terms`, `moderator:manage:chat_settings`, `moderator:read:automod_settings`,
13+
`moderator:read:blocked_terms` and `moderator:read:chat_settings`
14+
915
## [v0.6.0] - 2021-09-27
1016

1117
[Commits](https://github.com/Emilgardis/twitch_oauth2/compare/v0.5.2...v0.6.0)

Cargo.lock

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

src/scopes.rs

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -78,43 +78,50 @@ macro_rules! scope_impls {
7878
}
7979

8080
scope_impls!(
81-
AnalyticsReadExtensions, scope: "analytics:read:extensions", doc: "View analytics data for the Twitch Extensions owned by the authenticated account.";
82-
AnalyticsReadGames, scope: "analytics:read:games", doc: "View analytics data for the games owned by the authenticated account.";
83-
BitsRead, scope: "bits:read", doc: "View Bits information for a channel.";
84-
ChannelEditCommercial, scope: "channel:edit:commercial", doc: "Run commercials on a channel.";
85-
ChannelManageBroadcast, scope: "channel:manage:broadcast", doc: "Manage a channel’s broadcast configuration, including updating channel configuration and managing stream markers and stream tags.";
86-
ChannelManageExtensions, scope: "channel:manage:extensions", doc: "Manage a channel’s Extension configuration, including activating Extensions.";
87-
ChannelManagePolls, scope: "channel:manage:polls", doc: "Manage a channel’s polls.";
88-
ChannelManagePredictions, scope: "channel:manage:predictions", doc: "Manage of channel’s Channel Points Predictions";
89-
ChannelManageRedemptions, scope: "channel:manage:redemptions", doc: "Manage Channel Points custom rewards and their redemptions on a channel.";
90-
ChannelManageSchedule, scope: "channel:manage:schedule", doc: "Manage a channel’s stream schedule.";
91-
ChannelManageVideos, scope: "channel:manage:videos", doc: "Manage a channel’s videos, including deleting videos.";
92-
ChannelModerate, scope: "channel:moderate", doc: "Perform moderation actions in a channel. The user requesting the scope must be a moderator in the channel.";
93-
ChannelReadEditors, scope: "channel:read:editors", doc: "View a list of users with the editor role for a channel.";
94-
ChannelReadGoals, scope: "channel:read:goals", doc: "View Creator Goals for a channel.";
95-
ChannelReadHypeTrain, scope: "channel:read:hype_train", doc: "View Hype Train information for a channel.";
96-
ChannelReadPolls, scope: "channel:read:polls", doc: "View a channel’s polls.";
97-
ChannelReadPredictions, scope: "channel:read:predictions", doc: "View a channel’s Channel Points Predictions.";
98-
ChannelReadRedemptions, scope: "channel:read:redemptions", doc: "View Channel Points custom rewards and their redemptions on a channel.";
99-
ChannelReadStreamKey, scope: "channel:read:stream_key", doc: "View an authorized user’s stream key.";
100-
ChannelReadSubscriptions, scope: "channel:read:subscriptions", doc: "View a list of all subscribers to a channel and check if a user is subscribed to a channel.";
101-
ChannelSubscriptions, scope: "channel_subscriptions", doc: "\\[DEPRECATED\\] Read all subscribers to your channel.";
102-
ChatEdit, scope: "chat:edit", doc: "Send live stream chat and rooms messages.";
103-
ChatRead, scope: "chat:read", doc: "View live stream chat and rooms messages.";
104-
ClipsEdit, scope: "clips:edit", doc: "Manage Clips for a channel.";
105-
ModerationRead, scope: "moderation:read", doc: "View a channel’s moderation data including Moderators, Bans, Timeouts, and Automod settings.";
106-
ModeratorManageAutoMod, scope: "moderator:manage:automod", doc: "Manage messages held for review by AutoMod in channels where you are a moderator.";
107-
UserEdit, scope: "user:edit", doc: "Manage a user object.";
108-
UserEditBroadcast, scope: "user:edit:broadcast", doc: "Edit your channel's broadcast configuration, including extension configuration. (This scope implies user:read:broadcast capability.)";
109-
UserEditFollows, scope: "user:edit:follows", doc: "Edit a user’s follows.";
110-
UserManageBlockedUsers, scope: "user:manage:blocked_users", doc: "Manage the block list of a user.";
111-
UserReadBlockedUsers, scope: "user:read:blocked_users", doc: "View the block list of a user.";
112-
UserReadBroadcast, scope: "user:read:broadcast", doc: "View a user’s broadcasting configuration, including Extension configurations.";
113-
UserReadEmail, scope: "user:read:email", doc: "Read an authorized user’s email address.";
114-
UserReadFollows, scope: "user:read:follows", doc: "View the list of channels a user follows.";
115-
UserReadSubscriptions, scope: "user:read:subscriptions", doc: "View if an authorized user is subscribed to specific channels.";
116-
WhispersEdit, scope: "whispers:edit", doc: "Send whisper messages.";
117-
WhispersRead, scope: "whispers:read", doc: "View your whisper messages.";
81+
AnalyticsReadExtensions, scope: "analytics:read:extensions", doc: "View analytics data for the Twitch Extensions owned by the authenticated account.";
82+
AnalyticsReadGames, scope: "analytics:read:games", doc: "View analytics data for the games owned by the authenticated account.";
83+
BitsRead, scope: "bits:read", doc: "View Bits information for a channel.";
84+
ChannelEditCommercial, scope: "channel:edit:commercial", doc: "Run commercials on a channel.";
85+
ChannelManageBroadcast, scope: "channel:manage:broadcast", doc: "Manage a channel’s broadcast configuration, including updating channel configuration and managing stream markers and stream tags.";
86+
ChannelManageExtensions, scope: "channel:manage:extensions", doc: "Manage a channel’s Extension configuration, including activating Extensions.";
87+
ChannelManagePolls, scope: "channel:manage:polls", doc: "Manage a channel’s polls.";
88+
ChannelManagePredictions, scope: "channel:manage:predictions", doc: "Manage of channel’s Channel Points Predictions";
89+
ChannelManageRedemptions, scope: "channel:manage:redemptions", doc: "Manage Channel Points custom rewards and their redemptions on a channel.";
90+
ChannelManageSchedule, scope: "channel:manage:schedule", doc: "Manage a channel’s stream schedule.";
91+
ChannelManageVideos, scope: "channel:manage:videos", doc: "Manage a channel’s videos, including deleting videos.";
92+
ChannelModerate, scope: "channel:moderate", doc: "Perform moderation actions in a channel. The user requesting the scope must be a moderator in the channel.";
93+
ChannelReadEditors, scope: "channel:read:editors", doc: "View a list of users with the editor role for a channel.";
94+
ChannelReadGoals, scope: "channel:read:goals", doc: "View Creator Goals for a channel.";
95+
ChannelReadHypeTrain, scope: "channel:read:hype_train", doc: "View Hype Train information for a channel.";
96+
ChannelReadPolls, scope: "channel:read:polls", doc: "View a channel’s polls.";
97+
ChannelReadPredictions, scope: "channel:read:predictions", doc: "View a channel’s Channel Points Predictions.";
98+
ChannelReadRedemptions, scope: "channel:read:redemptions", doc: "View Channel Points custom rewards and their redemptions on a channel.";
99+
ChannelReadStreamKey, scope: "channel:read:stream_key", doc: "View an authorized user’s stream key.";
100+
ChannelReadSubscriptions, scope: "channel:read:subscriptions", doc: "View a list of all subscribers to a channel and check if a user is subscribed to a channel.";
101+
ChannelSubscriptions, scope: "channel_subscriptions", doc: "\\[DEPRECATED\\] Read all subscribers to your channel.";
102+
ChatEdit, scope: "chat:edit", doc: "Send live stream chat and rooms messages.";
103+
ChatRead, scope: "chat:read", doc: "View live stream chat and rooms messages.";
104+
ClipsEdit, scope: "clips:edit", doc: "Manage Clips for a channel.";
105+
ModerationRead, scope: "moderation:read", doc: "View a channel’s moderation data including Moderators, Bans, Timeouts, and Automod settings.";
106+
ModeratorManageAutoMod, scope: "moderator:manage:automod", doc: "Manage messages held for review by AutoMod in channels where you are a moderator.";
107+
ModeratorManageAutomodSettings, scope: "moderator:manage:automod_settings", doc: "Manage a broadcaster’s AutoMod settings";
108+
ModeratorManageBannedUsers, scope: "moderator:manage:banned_users", doc: "Ban and unban users.";
109+
ModeratorManageBlockedTerms, scope: "moderator:manage:blocked_terms", doc: "Manage a broadcaster’s list of blocked terms.";
110+
ModeratorManageChatSettings, scope: "moderator:manage:chat_settings", doc: "View a broadcaster’s chat room settings.";
111+
ModeratorReadAutomodSettings, scope: "moderator:read:automod_settings", doc: "View a broadcaster’s AutoMod settings.";
112+
ModeratorReadBlockedTerms, scope: "moderator:read:blocked_terms", doc: "View a broadcaster’s list of blocked terms.";
113+
ModeratorReadChatSettings, scope: "moderator:read:chat_settings", doc: "View a broadcaster’s chat room settings.";
114+
UserEdit, scope: "user:edit", doc: "Manage a user object.";
115+
UserEditBroadcast, scope: "user:edit:broadcast", doc: "Edit your channel's broadcast configuration, including extension configuration. (This scope implies user:read:broadcast capability.)";
116+
UserEditFollows, scope: "user:edit:follows", doc: "Edit a user’s follows.";
117+
UserManageBlockedUsers, scope: "user:manage:blocked_users", doc: "Manage the block list of a user.";
118+
UserReadBlockedUsers, scope: "user:read:blocked_users", doc: "View the block list of a user.";
119+
UserReadBroadcast, scope: "user:read:broadcast", doc: "View a user’s broadcasting configuration, including Extension configurations.";
120+
UserReadEmail, scope: "user:read:email", doc: "Read an authorized user’s email address.";
121+
UserReadFollows, scope: "user:read:follows", doc: "View the list of channels a user follows.";
122+
UserReadSubscriptions, scope: "user:read:subscriptions", doc: "View if an authorized user is subscribed to specific channels.";
123+
WhispersEdit, scope: "whispers:edit", doc: "Send whisper messages.";
124+
WhispersRead, scope: "whispers:read", doc: "View your whisper messages.";
118125
);
119126

120127
impl std::borrow::Borrow<str> for Scope {

0 commit comments

Comments
 (0)