diff --git a/helix/user.go b/helix/user.go index 7fdc0ac..eb33cfc 100644 --- a/helix/user.go +++ b/helix/user.go @@ -38,7 +38,7 @@ func NewClient(clientID string, clientSecret string) Client { panic(err) } - resp, err := client.GetAppAccessToken([]string{}) + resp, err := client.RequestAppAccessToken([]string{}) if err != nil { panic(err) } @@ -77,7 +77,7 @@ func (c *Client) StartRefreshTokenRoutine() { ticker := time.NewTicker(24 * time.Hour) for range ticker.C { - resp, err := c.client.GetAppAccessToken([]string{}) + resp, err := c.client.RequestAppAccessToken([]string{}) if err != nil { log.Error(err) continue