From 1f8067f8c804deb2ee97580d30ba50bcfca52012 Mon Sep 17 00:00:00 2001 From: ObsidianMinor Date: Sat, 4 Mar 2017 11:30:50 -0600 Subject: [PATCH] wrong value property name in anonymous type for block user --- src/Discord.Net.Rest/DiscordRestApiClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Rest/DiscordRestApiClient.cs b/src/Discord.Net.Rest/DiscordRestApiClient.cs index b730745cb..3587d95f8 100644 --- a/src/Discord.Net.Rest/DiscordRestApiClient.cs +++ b/src/Discord.Net.Rest/DiscordRestApiClient.cs @@ -1047,7 +1047,7 @@ namespace Discord.API Preconditions.NotEqual(userId, 0, nameof(userId)); options = RequestOptions.CreateOrClone(options); - await SendJsonAsync("PUT", () => $"users/@me/relationships/{userId}", new { value = 2 }, new BucketIds(), options: options).ConfigureAwait(false); + await SendJsonAsync("PUT", () => $"users/@me/relationships/{userId}", new { type = 2 }, new BucketIds(), options: options).ConfigureAwait(false); } public async Task RemoveRelationshipAsync(ulong userId, RequestOptions options = null) {