Dont reset color/hoist on EditRole

This commit is contained in:
RogueException
2015-10-25 22:40:23 -03:00
parent 61c748d97d
commit 1014176d2e

View File

@@ -105,9 +105,9 @@ namespace Discord
//TODO: check this null workaround later, should be fixed on Discord's end soon
var response = await _api.EditRole(role.Server.Id, role.Id,
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)
{