Browse Source

fix get guild commands endpoint

pull/2395/head
Cenngo 3 years ago
parent
commit
daa3626e55
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Discord.Net.Rest/DiscordRestApiClient.cs

+ 2
- 2
src/Discord.Net.Rest/DiscordRestApiClient.cs View File

@@ -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<ApplicationCommand[]>("GET", () => $"applications/{CurrentApplicationId}/commands{}",
return await SendAsync<ApplicationCommand[]>("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<ApplicationCommand[]>("GET", () => $"applications/{CurrentApplicationId}/commands{query}",
return await SendAsync<ApplicationCommand[]>("GET", () => $"applications/{CurrentApplicationId}/guilds/{guildId}/commands{query}",
bucket, options: options).ConfigureAwait(false);
}



Loading…
Cancel
Save