mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
fix(Role): allow edit method to null the color (#2447)
This commit is contained in:
parent
ef138fd3e9
commit
f985b6bef3
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ class Role extends Base {
|
|||
return this.client.api.guilds[this.guild.id].roles[this.id].patch({
|
||||
data: {
|
||||
name: data.name || this.name,
|
||||
color: Util.resolveColor(data.color || this.color),
|
||||
color: data.color !== null ? Util.resolveColor(data.color || this.color) : null,
|
||||
hoist: typeof data.hoist !== 'undefined' ? data.hoist : this.hoist,
|
||||
permissions: data.permissions,
|
||||
mentionable: typeof data.mentionable !== 'undefined' ? data.mentionable : this.mentionable,
|
||||
|
|
|
|||
Loading…
Reference in a new issue