Skip to content

Commit

Permalink
add GET prefix for ApplicationCommands bucketID (#1193)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
plally and FedorLap2006 committed Jun 19, 2022
1 parent 5da28ed commit a7f0378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi.go
Expand Up @@ -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
}
Expand Down

0 comments on commit a7f0378

Please sign in to comment.