mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-21 04:11:16 +00:00
Compare commits
No commits in common. "01390583b2778a7a924c22634de30045591a6d13" and "eec4966b82cd6b2173c1e4be1f5562dd31c535aa" have entirely different histories.
01390583b2
...
eec4966b82
2 changed files with 0 additions and 19 deletions
12
History.md
12
History.md
|
@ -1,15 +1,3 @@
|
||||||
# 3.22.0 / 2023-12-14
|
|
||||||
|
|
||||||
* Improvements
|
|
||||||
* [editor] Display clear warning when ext perms are missing
|
|
||||||
* [eventsub] Make topic subscriptions more dynamic
|
|
||||||
|
|
||||||
* Bugfixes
|
|
||||||
* [core] Fix: Properly handle channels without credentials
|
|
||||||
* [eventsub] Fix: Clean IPs from eventsub-socket read errors
|
|
||||||
* [eventsub] Update field naming for ad-break, use V1 event
|
|
||||||
* [twitch] Fix: Log correct error when wiping token fails
|
|
||||||
|
|
||||||
# 3.21.0 / 2023-12-09
|
# 3.21.0 / 2023-12-09
|
||||||
|
|
||||||
* Improvements
|
* Improvements
|
||||||
|
|
|
@ -172,13 +172,6 @@ func (s Service) GetTwitchClientForChannel(channel string, cfg ClientConfig) (*t
|
||||||
return nil, errors.Wrap(err, "decrypting refresh token")
|
return nil, errors.Wrap(err, "decrypting refresh token")
|
||||||
}
|
}
|
||||||
|
|
||||||
if perm.AccessToken == "" && perm.RefreshToken == "" {
|
|
||||||
// We have no tokens but an entry in the permission table: Means
|
|
||||||
// we still can't do stuff on behalf of that channel so we treat
|
|
||||||
// that as an unauthorized channel
|
|
||||||
return nil, ErrChannelNotAuthorized
|
|
||||||
}
|
|
||||||
|
|
||||||
scopes := strings.Split(perm.Scopes, " ")
|
scopes := strings.Split(perm.Scopes, " ")
|
||||||
|
|
||||||
tc := twitch.New(cfg.TwitchClient, cfg.TwitchClientSecret, perm.AccessToken, perm.RefreshToken)
|
tc := twitch.New(cfg.TwitchClient, cfg.TwitchClientSecret, perm.AccessToken, perm.RefreshToken)
|
||||||
|
|
Loading…
Reference in a new issue