Browse Source

wrong value property name in anonymous type for block user

pull/369/head
ObsidianMinor 8 years ago
parent
commit
1f8067f8c8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net.Rest/DiscordRestApiClient.cs

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

@@ -1047,7 +1047,7 @@ namespace Discord.API
Preconditions.NotEqual(userId, 0, nameof(userId)); Preconditions.NotEqual(userId, 0, nameof(userId));
options = RequestOptions.CreateOrClone(options); 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) public async Task RemoveRelationshipAsync(ulong userId, RequestOptions options = null)
{ {


Loading…
Cancel
Save