Browse Source

Dont reset color/hoist on EditRole

tags/docs-0.9
RogueException 9 years ago
parent
commit
1014176d2e
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/Discord.Net/DiscordClient.Roles.cs

+ 3
- 3
src/Discord.Net/DiscordClient.Roles.cs View File

@@ -105,9 +105,9 @@ namespace Discord
//TODO: check this null workaround later, should be fixed on Discord's end soon //TODO: check this null workaround later, should be fixed on Discord's end soon
var response = await _api.EditRole(role.Server.Id, role.Id, var response = await _api.EditRole(role.Server.Id, role.Id,
name: name ?? role.Name, name: name ?? role.Name,
permissions: permissions?.RawValue ?? role.Permissions.RawValue,
color: color?.RawValue,
hoist: hoist).ConfigureAwait(false);
permissions: (permissions ?? role.Permissions).RawValue,
color: (color ?? role.Color).RawValue,
hoist: hoist ?? role.IsHoisted).ConfigureAwait(false);


if (position != null) if (position != null)
{ {


Loading…
Cancel
Save