Browse Source

Fixed updating members without ManageNicknames

pull/73/merge
RogueException 9 years ago
parent
commit
a4b08bee8b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net/API/Client/Rest/UpdateMember.cs

+ 2
- 1
src/Discord.Net/API/Client/Rest/UpdateMember.cs View File

@@ -1,5 +1,6 @@
using Discord.API.Converters;
using Newtonsoft.Json;
using System.ComponentModel;

namespace Discord.API.Client.Rest
{
@@ -21,7 +22,7 @@ namespace Discord.API.Client.Rest
public ulong? VoiceChannelId { get; set; }
[JsonProperty("roles"), JsonConverter(typeof(LongStringArrayConverter))]
public ulong[] RoleIds { get; set; }
[JsonProperty("nick")]
[JsonProperty("nick", DefaultValueHandling = DefaultValueHandling.Ignore), DefaultValue("")]
public string Nickname { get; set; }

public UpdateMemberRequest(ulong guildId, ulong userId)


Loading…
Cancel
Save