Dont reset color/hoist on EditRole
This commit is contained in:
@@ -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,
|
permissions: (permissions ?? role.Permissions).RawValue,
|
||||||
color: color?.RawValue,
|
color: (color ?? role.Color).RawValue,
|
||||||
hoist: hoist).ConfigureAwait(false);
|
hoist: hoist ?? role.IsHoisted).ConfigureAwait(false);
|
||||||
|
|
||||||
if (position != null)
|
if (position != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user