From 250c731c7822ea43a8fcfe70da20ab1e7eb75bf0 Mon Sep 17 00:00:00 2001 From: gempir Date: Sun, 18 Feb 2024 12:57:00 +0100 Subject: [PATCH] no need to send messages as the channel owner --- internal/helixclient/client.go | 2 +- web/src/factory/createLoginUrl.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/helixclient/client.go b/internal/helixclient/client.go index c0e70ec..b71fda2 100644 --- a/internal/helixclient/client.go +++ b/internal/helixclient/client.go @@ -66,7 +66,7 @@ func init() { const TWITCH_API = "https://api.twitch.tv/" -var scopes = []string{"channel:read:redemptions", "channel:manage:redemptions", "channel:read:predictions", "channel:manage:predictions", "moderation:read", "channel:bot", "user:write:chat", "user:bot", "moderator:manage:announcements"} +var scopes = []string{"channel:read:redemptions", "channel:manage:redemptions", "channel:read:predictions", "channel:manage:predictions", "moderation:read", "channel:bot", "user:write:chat", "moderator:manage:announcements"} // NewClient Create helix client func NewClient(cfg *config.Config, db store.Store) *HelixClient { diff --git a/web/src/factory/createLoginUrl.ts b/web/src/factory/createLoginUrl.ts index f3f164d..2336d82 100644 --- a/web/src/factory/createLoginUrl.ts +++ b/web/src/factory/createLoginUrl.ts @@ -3,7 +3,7 @@ export function createLoginUrl(apiBaseUrl: string, twitchClientId: string): URL url.searchParams.set("client_id", twitchClientId); url.searchParams.set("redirect_uri", apiBaseUrl + "/api/callback"); url.searchParams.set("response_type", "code"); - url.searchParams.set("scope", ["channel:read:redemptions", "channel:manage:redemptions", "channel:read:predictions", "channel:manage:predictions", "moderation:read", "channel:bot", "user:write:chat", "user:bot", "moderator:manage:announcements"].join(" ")); + url.searchParams.set("scope", ["channel:read:redemptions", "channel:manage:redemptions", "channel:read:predictions", "channel:manage:predictions", "moderation:read", "channel:bot", "user:write:chat", "moderator:manage:announcements"].join(" ")); return url; } \ No newline at end of file