mirror of
https://github.com/danbulant/discord.js
synced 2026-07-06 03:31:03 +00:00
[Docs] Evaluated Permissions References (#1250)
* Docs / Permissions Overwrites Reference * Docs / Evaluated Permissions Reference * Clarify role.permissions is not evaluated * Update Role.js
This commit is contained in:
parent
2897692cf1
commit
14ae7cdf17
2 changed files with 3 additions and 2 deletions
|
|
@ -280,7 +280,8 @@ class GuildMember {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns `channel.permissionsFor(guildMember)`. Returns evaluated permissions for a member in a guild channel.
|
* Returns `channel.permissionsFor(guildMember)`. Returns permissions for a member in a guild channel,
|
||||||
|
* taking into account roles and permission overwrites.
|
||||||
* @param {ChannelResolvable} channel Guild channel to use as context
|
* @param {ChannelResolvable} channel Guild channel to use as context
|
||||||
* @returns {?Permissions}
|
* @returns {?Permissions}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Role {
|
||||||
this.position = data.position;
|
this.position = data.position;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The evaluated permissions number
|
* The permissions bitfield of the role
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.permissions = data.permissions;
|
this.permissions = data.permissions;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue