From daa3626e553c2e0e9954ea4c8827cbdeb7b43480 Mon Sep 17 00:00:00 2001 From: Cenngo Date: Thu, 18 Aug 2022 03:46:02 +0300 Subject: [PATCH] fix get guild commands endpoint --- src/Discord.Net.Rest/DiscordRestApiClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Rest/DiscordRestApiClient.cs b/src/Discord.Net.Rest/DiscordRestApiClient.cs index c1a1dc28b..eb1737c6f 100644 --- a/src/Discord.Net.Rest/DiscordRestApiClient.cs +++ b/src/Discord.Net.Rest/DiscordRestApiClient.cs @@ -1227,7 +1227,7 @@ namespace Discord.API //with_localizations=false doesnt return localized names and descriptions var query = withLocalizations ? "?with_localizations=true" : string.Empty; - return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{}", + return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{query}", new BucketIds(), options: options).ConfigureAwait(false); } @@ -1309,7 +1309,7 @@ namespace Discord.API //with_localizations=false doesnt return localized names and descriptions var query = withLocalizations ? "?with_localizations=true" : string.Empty; - return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/commands{query}", + return await SendAsync("GET", () => $"applications/{CurrentApplicationId}/guilds/{guildId}/commands{query}", bucket, options: options).ConfigureAwait(false); }