mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Readded permissions to Role#edit's payload (#1760)
This commit is contained in:
parent
25dd3bc29e
commit
a49709d329
1 changed files with 2 additions and 1 deletions
|
|
@ -205,9 +205,10 @@ class Role {
|
|||
return this.client.api.guilds[this.guild.id].roles[this.id].patch({
|
||||
data: {
|
||||
name: data.name || this.name,
|
||||
position: typeof data.position !== 'undefined' ? data.position : this.position,
|
||||
color: Util.resolveColor(data.color || this.color),
|
||||
hoist: typeof data.hoist !== 'undefined' ? data.hoist : this.hoist,
|
||||
position: typeof data.position !== 'undefined' ? data.position : this.position,
|
||||
permissions: data.permissions,
|
||||
mentionable: typeof data.mentionable !== 'undefined' ? data.mentionable : this.mentionable,
|
||||
},
|
||||
reason,
|
||||
|
|
|
|||
Loading…
Reference in a new issue