Skip to content
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

Update Chat Auth scope from 'chat:moderate' to 'channel:moderate' #358

Merged
merged 1 commit into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TwitchLib.Api.Core.Enums/AuthScopesEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum AuthScopes
Channel_Subscriptions,
Chat_Read,
Chat_Edit,
Chat_Moderate,
Channel_Moderate,
Collections_Edit,
Communities_Edit,
Communities_Moderate,
Expand Down
4 changes: 2 additions & 2 deletions TwitchLib.Api.Core/Common/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public static string AuthScopesToString(AuthScopes scope)
return "channel_feed_read";
case AuthScopes.Chat_Read:
return "chat:read";
case AuthScopes.Chat_Moderate:
return "chat:moderate";
case AuthScopes.Channel_Moderate:
return "channel:moderate";
case AuthScopes.Chat_Edit:
return "chat:edit";
case AuthScopes.Channel_Read:
Expand Down
2 changes: 1 addition & 1 deletion TwitchLib.Api/ThirdParty/AuthorizationFlow/PingResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private AuthScopes StringToScope(string scope)
case "chat:edit":
return AuthScopes.Chat_Edit;
case "chat:moderate":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noticed this after the fact, but this is still chat not channel

return AuthScopes.Chat_Moderate;
return AuthScopes.Channel_Moderate;
case "channel_editor":
return AuthScopes.Channel_Editor;
case "channel_feed_read":
Expand Down