diff --git a/utils/discord/endpoints.go b/utils/discord/endpoints.go index 17413a1..7bf8718 100644 --- a/utils/discord/endpoints.go +++ b/utils/discord/endpoints.go @@ -81,7 +81,7 @@ func (e *Endpoint) Request(store sessions.Session, contentType *ContentType, bod refreshToken := store.Get("refresh_token").(string) // Check if needs refresh - if (time.Now().UnixNano() / int64(time.Second)) > int64(expiry) { + if (time.Now().UnixNano() / int64(time.Second)) > expiry { res, err := RefreshToken(refreshToken) if err != nil { store.Clear()