From a7f037862343f3ed29da9543b9ea4f8c57810620 Mon Sep 17 00:00:00 2001 From: plally Date: Sun, 19 Jun 2022 14:20:11 -0400 Subject: [PATCH] add GET prefix for ApplicationCommands bucketID (#1193) * add GET prefix for ApplicationCommands bucketID * dont use local variable for bucketID Co-authored-by: Fedor Lapshin * format code * remove newline Co-authored-by: Fedor Lapshin --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 16d2fb0..61a566d 100644 --- a/restapi.go +++ b/restapi.go @@ -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 }