Skip to content

Commit

Permalink
fix(Role): allow role color to be removed
Browse files Browse the repository at this point in the history
Backported from: f985b6b
PR: #2447
  • Loading branch information
SpaceEEC committed May 8, 2018
1 parent 54fa5f6 commit 2f2e281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/rest/RESTMethods.js
Expand Up @@ -633,7 +633,7 @@ class RESTMethods {
const data = {};
data.name = _data.name || role.name;
data.position = typeof _data.position !== 'undefined' ? _data.position : role.position;
data.color = this.client.resolver.resolveColor(_data.color || role.color);
data.color = _data.color === null ? null : this.client.resolver.resolveColor(_data.color || role.color);
data.hoist = typeof _data.hoist !== 'undefined' ? _data.hoist : role.hoist;
data.mentionable = typeof _data.mentionable !== 'undefined' ? _data.mentionable : role.mentionable;

Expand Down

0 comments on commit 2f2e281

Please sign in to comment.