Skip to content

Commit

Permalink
:sparcles: OAuthで求める権限にユーザーの入っているサーバー閲覧とギルドに参加を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
pikachu0310 committed Feb 6, 2024
1 parent a744171 commit fe35ea1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/api/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ func GetDiscordOAuthRedirectURI() (string, error) {
params.Add("client_id", clientID)
params.Add("response_type", "code")
params.Add("redirect_uri", clientRedirectURI)
params.Add("scope", "identify")
scopes := "identify guilds guilds.join"
params.Add("scope", scopes)
u.RawQuery = params.Encode()

return u.String(), nil
Expand Down

0 comments on commit fe35ea1

Please sign in to comment.