Skip to content

Commit 6eccff4

Browse files
committed
add new scopes
also modify doc a bit
1 parent 60d1bab commit 6eccff4

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
### Added
1414

15-
* Added scope `channel:manage:raids`
15+
* Added scopes `channel:manage:raids`, `channel:manage:moderators`, `channel:manage:vips`, `channel:read:charity`,
16+
`channel:read:vips`, `moderator:manage:announcements`, `moderator:manage:chat_messages`, `user:manage:chat_color` and
17+
`user:manage:whispers`
1618

1719
## [v0.7.0] - 2022-05-08
1820

@@ -101,6 +103,6 @@
101103
* Fixed wrong scope `user:read:stream_key` -> `channel:read:stream_key`
102104
* BREAKING: changed `TwitchToken::expires` -> `TwitchToken::expires_in` to calculate current lifetime of token
103105

104-
## End of Changelog
106+
## End of Changelog
105107

106108
Changelog starts on v0.5.0

src/scopes.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ scope_impls!(
8484
ChannelEditCommercial, scope: "channel:edit:commercial", doc: "Run commercials on a channel.";
8585
ChannelManageBroadcast, scope: "channel:manage:broadcast", doc: "Manage a channel’s broadcast configuration, including updating channel configuration and managing stream markers and stream tags.";
8686
ChannelManageExtensions, scope: "channel:manage:extensions", doc: "Manage a channel’s Extension configuration, including activating Extensions.";
87+
ChannelManageModerators, scope: "channel:manage:moderators", doc: "Add or remove the moderator role from users in your channel.";
8788
ChannelManagePolls, scope: "channel:manage:polls", doc: "Manage a channel’s polls.";
8889
ChannelManagePredictions, scope: "channel:manage:predictions", doc: "Manage of channel’s Channel Points Predictions";
89-
ChannelManageRaids, scope: "channel:manage:raids", doc: "Manage a Channel’s raids.";
90+
ChannelManageRaids, scope: "channel:manage:raids", doc: "Manage a channel raiding another channel.";
9091
ChannelManageRedemptions, scope: "channel:manage:redemptions", doc: "Manage Channel Points custom rewards and their redemptions on a channel.";
9192
ChannelManageSchedule, scope: "channel:manage:schedule", doc: "Manage a channel’s stream schedule.";
9293
ChannelManageVideos, scope: "channel:manage:videos", doc: "Manage a channel’s videos, including deleting videos.";
94+
ChannelManageVips, scope: "channel:manage:vips", doc: "Add or remove the VIP role from users in your channel.";
9395
ChannelModerate, scope: "channel:moderate", doc: "Perform moderation actions in a channel. The user requesting the scope must be a moderator in the channel.";
96+
ChannelReadCharity, scope: "channel:read:charity", doc: "Read charity campaign details and user donations on your channel.";
9497
ChannelReadEditors, scope: "channel:read:editors", doc: "View a list of users with the editor role for a channel.";
9598
ChannelReadGoals, scope: "channel:read:goals", doc: "View Creator Goals for a channel.";
9699
ChannelReadHypeTrain, scope: "channel:read:hype_train", doc: "View Hype Train information for a channel.";
@@ -99,26 +102,31 @@ scope_impls!(
99102
ChannelReadRedemptions, scope: "channel:read:redemptions", doc: "View Channel Points custom rewards and their redemptions on a channel.";
100103
ChannelReadStreamKey, scope: "channel:read:stream_key", doc: "View an authorized user’s stream key.";
101104
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.";
105+
ChannelReadVips, scope: "channel:read:vips", doc: "Read the list of VIPs in your channel.";
102106
ChannelSubscriptions, scope: "channel_subscriptions", doc: "\\[DEPRECATED\\] Read all subscribers to your channel.";
103107
ChatEdit, scope: "chat:edit", doc: "Send live stream chat and rooms messages.";
104108
ChatRead, scope: "chat:read", doc: "View live stream chat and rooms messages.";
105109
ClipsEdit, scope: "clips:edit", doc: "Manage Clips for a channel.";
106110
ModerationRead, scope: "moderation:read", doc: "View a channel’s moderation data including Moderators, Bans, Timeouts, and Automod settings.";
111+
ModeratorManageAnnouncements, scope: "moderator:manage:announcements", doc: "Send announcements in channels where you have the moderator role.";
107112
ModeratorManageAutoMod, scope: "moderator:manage:automod", doc: "Manage messages held for review by AutoMod in channels where you are a moderator.";
108113
ModeratorManageAutomodSettings, scope: "moderator:manage:automod_settings", doc: "Manage a broadcaster’s AutoMod settings";
109114
ModeratorManageBannedUsers, scope: "moderator:manage:banned_users", doc: "Ban and unban users.";
110115
ModeratorManageBlockedTerms, scope: "moderator:manage:blocked_terms", doc: "Manage a broadcaster’s list of blocked terms.";
116+
ModeratorManageChatMessages, scope: "moderator:manage:chat_messages", doc: "Delete chat messages in channels where you have the moderator role";
111117
ModeratorManageChatSettings, scope: "moderator:manage:chat_settings", doc: "View a broadcaster’s chat room settings.";
112118
ModeratorReadAutomodSettings, scope: "moderator:read:automod_settings", doc: "View a broadcaster’s AutoMod settings.";
113119
ModeratorReadBlockedTerms, scope: "moderator:read:blocked_terms", doc: "View a broadcaster’s list of blocked terms.";
114120
ModeratorReadChatSettings, scope: "moderator:read:chat_settings", doc: "View a broadcaster’s chat room settings.";
115121
UserEdit, scope: "user:edit", doc: "Manage a user object.";
116122
UserEditBroadcast, scope: "user:edit:broadcast", doc: "Edit your channel's broadcast configuration, including extension configuration. (This scope implies user:read:broadcast capability.)";
117-
UserEditFollows, scope: "user:edit:follows", doc: "Edit a user’s follows.";
123+
UserEditFollows, scope: "user:edit:follows", doc: "\\[DEPRECATED\\] Was previously used for “Create User Follows” and “Delete User Follows.";
118124
UserManageBlockedUsers, scope: "user:manage:blocked_users", doc: "Manage the block list of a user.";
125+
UserManageChatColor, scope: "user:manage:chat_color", doc: "Update the color used for the user’s name in chat.Update User Chat Color";
126+
UserManageWhispers, scope: "user:manage:whispers", doc: "Read whispers that you send and receive, and send whispers on your behalf.";
119127
UserReadBlockedUsers, scope: "user:read:blocked_users", doc: "View the block list of a user.";
120128
UserReadBroadcast, scope: "user:read:broadcast", doc: "View a user’s broadcasting configuration, including Extension configurations.";
121-
UserReadEmail, scope: "user:read:email", doc: "Read an authorized user’s email address.";
129+
UserReadEmail, scope: "user:read:email", doc: "View a user’s email address.";
122130
UserReadFollows, scope: "user:read:follows", doc: "View the list of channels a user follows.";
123131
UserReadSubscriptions, scope: "user:read:subscriptions", doc: "View if an authorized user is subscribed to specific channels.";
124132
WhispersEdit, scope: "whispers:edit", doc: "Send whisper messages.";

0 commit comments

Comments
 (0)