From fd82ee3d760f03213fcb01e70aac9ba34175ef8e Mon Sep 17 00:00:00 2001 From: Cenngo Date: Thu, 18 Aug 2022 03:37:05 +0300 Subject: [PATCH] fix failed to generate buket id --- src/Discord.Net.Rest/DiscordRestApiClient.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Rest/DiscordRestApiClient.cs b/src/Discord.Net.Rest/DiscordRestApiClient.cs index 0559f757f..c1a1dc28b 100644 --- a/src/Discord.Net.Rest/DiscordRestApiClient.cs +++ b/src/Discord.Net.Rest/DiscordRestApiClient.cs @@ -1226,7 +1226,8 @@ namespace Discord.API } //with_localizations=false doesnt return localized names and descriptions - return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{(withLocalizations ? "?with_localizations=true" : string.Empty)}", + var query = withLocalizations ? "?with_localizations=true" : string.Empty; + return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{}", new BucketIds(), options: options).ConfigureAwait(false); } @@ -1307,7 +1308,8 @@ namespace Discord.API } //with_localizations=false doesnt return localized names and descriptions - return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{(withLocalizations ? "?with_localizations=true" : string.Empty)}", + var query = withLocalizations ? "?with_localizations=true" : string.Empty; + return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{query}", bucket, options: options).ConfigureAwait(false); }