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{
|
|
|
|
twitch.ScopeChannelEditCommercial: "run commercial",
|
|
|
|
twitch.ScopeChannelManageBroadcast: "modify category / title",
|
|
|
|
twitch.ScopeChannelManagePolls: "manage polls",
|
|
|
|
twitch.ScopeChannelManagePredictions: "manage predictions",
|
|
|
|
twitch.ScopeChannelManageRaids: "start raids",
|
|
|
|
twitch.ScopeChannelManageVIPS: "manage VIPs",
|
|
|
|
twitch.ScopeChannelReadRedemptions: "see channel-point redemptions",
|
2023-04-22 20:23:35 +00:00
|
|
|
twitch.ScopeChannelReadSubscriptions: "see subscribed users / sub count / points",
|
2023-02-04 11:25:46 +00:00
|
|
|
twitch.ScopeModeratorReadFollowers: "see who follows this channel",
|
2023-03-21 09:51:34 +00:00
|
|
|
twitch.ScopeModeratorReadShoutouts: "see shoutouts created / received",
|
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,
|
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
|
|
|
)
|