add GET prefix for ApplicationCommands bucketID (#1193)

* add GET prefix for ApplicationCommands bucketID

* dont use local variable for bucketID

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

* format code

* remove newline

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
This commit is contained in:
plally 2022-06-19 14:20:11 -04:00 committed by GitHub
parent 5da28ed4b9
commit a7f0378623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2814,7 +2814,7 @@ func (s *Session) ApplicationCommands(appID, guildID string) (cmd []*Application
endpoint = EndpointApplicationGuildCommands(appID, guildID)
}
body, err := s.RequestWithBucketID("GET", endpoint+"?with_localizations=true", nil, endpoint)
body, err := s.RequestWithBucketID("GET", endpoint+"?with_localizations=true", nil, "GET "+endpoint)
if err != nil {
return
}