mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(Role): allow role color to be removed
Backported from: f985b6bef3
PR: #2447
This commit is contained in:
parent
54fa5f644f
commit
2f2e28183b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue