Skip to content

Commit

Permalink
omit default integration_type v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sebm253 committed Mar 20, 2024
1 parent f55cb04 commit db2bd88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oauth2/client_impl.go
Expand Up @@ -72,6 +72,9 @@ func (c *clientImpl) GenerateAuthorizationURLState(redirectURI string, permissio
if disableGuildSelect {
values["disable_guild_select"] = true
}
if integrationType != 0 {
values["integration_type"] = integrationType
}
return discord.AuthorizeURL(values), state
}

Expand Down

0 comments on commit db2bd88

Please sign in to comment.