2021-12-31 12:42:37 +00:00
|
|
|
package main
|
|
|
|
|
2022-11-02 21:38:14 +00:00
|
|
|
import "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
2021-12-31 12:42:37 +00:00
|
|
|
|
|
|
|
var (
|
2022-12-04 16:14:15 +00:00
|
|
|
channelExtendedScopes = map[string]string{
|
2024-04-06 16:40:18 +00:00
|
|
|
twitch.ScopeChannelEditCommercial: "run commercial",
|
2024-09-03 21:27:01 +00:00
|
|
|
twitch.ScopeChannelManageBroadcast: "modify category / title, create markers",
|
2024-04-06 16:40:18 +00:00
|
|
|
twitch.ScopeChannelManagePolls: "manage polls",
|
|
|
|
twitch.ScopeChannelManagePredictions: "manage predictions",
|
|
|
|
twitch.ScopeChannelManageRaids: "start raids",
|
|
|
|
twitch.ScopeChannelManageVIPS: "manage VIPs",
|
|
|
|
twitch.ScopeChannelReadAds: "see when an ad-break starts",
|
|
|
|
twitch.ScopeChannelReadHypetrain: "see Hype-Train events",
|
|
|
|
twitch.ScopeChannelReadRedemptions: "see channel-point redemptions",
|
|
|
|
twitch.ScopeChannelReadSubscriptions: "see subscribed users / sub count / points",
|
|
|
|
twitch.ScopeClipsEdit: "create clips on behalf of this user",
|
|
|
|
twitch.ScopeModeratorReadFollowers: "see who follows this channel",
|
|
|
|
twitch.ScopeModeratorReadShoutouts: "see shoutouts created / received",
|
|
|
|
twitch.ScopeModeratorReadSuspiciousUsers: "see users marked suspicious / restricted",
|
|
|
|
twitch.ScopeUserManageWhispers: "send whispers on behalf of this user",
|
2022-04-23 15:24:49 +00:00
|
|
|
}
|
|
|
|
|
2022-12-04 16:14:15 +00:00
|
|
|
botDefaultScopes = []string{
|
|
|
|
// API Scopes
|
2022-10-25 16:47:30 +00:00
|
|
|
twitch.ScopeModeratorManageAnnoucements,
|
|
|
|
twitch.ScopeModeratorManageBannedUsers,
|
|
|
|
twitch.ScopeModeratorManageChatMessages,
|
|
|
|
twitch.ScopeModeratorManageChatSettings,
|
2023-02-04 12:59:18 +00:00
|
|
|
twitch.ScopeModeratorManageShieldMode,
|
2023-01-20 11:13:59 +00:00
|
|
|
twitch.ScopeModeratorManageShoutouts,
|
2023-09-29 12:54:24 +00:00
|
|
|
twitch.ScopeModeratorReadFollowers,
|
2022-12-04 16:14:15 +00:00
|
|
|
|
|
|
|
// Chat Scopes
|
|
|
|
twitch.ScopeChatEdit,
|
|
|
|
twitch.ScopeChatRead,
|
2021-12-31 12:42:37 +00:00
|
|
|
twitch.ScopeWhisperRead,
|
2022-12-04 16:14:15 +00:00
|
|
|
}
|
2021-12-31 12:42:37 +00:00
|
|
|
)
|