mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 11:33:30 +01:00
Made hasPermission(s) docs a bit more consistent
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -44,9 +44,9 @@ class EvaluatedPermissions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether a user has multiple permissions in a channel.
|
* Checks whether the user has all specified permissions.
|
||||||
* @param {PermissionResolvable[]} permissions the permissions to test for
|
* @param {PermissionResolvable[]} permissions The permissions to check for
|
||||||
* @param {boolean} [explicit=false] whether to require the user to explicitly have the exact permissions
|
* @param {boolean} [explicit=false] Whether to require the user to explicitly have the exact permissions
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
hasPermissions(permissions, explicit = false) {
|
hasPermissions(permissions, explicit = false) {
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ class GuildMember {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if any of the member's roles have a permission
|
* Checks if any of the member's roles have a permission.
|
||||||
* @param {PermissionResolvable} permission The permission to check for
|
* @param {PermissionResolvable} permission The permission to check for
|
||||||
* @param {boolean} [explicit=false] Whether to require the roles to explicitly have the exact permission
|
* @param {boolean} [explicit=false] Whether to require the roles to explicitly have the exact permission
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
@@ -190,9 +190,9 @@ class GuildMember {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the roles of the members allow them to perform specific actions.
|
* Checks whether the roles of the member allows them to perform specific actions.
|
||||||
* @param {PermissionResolvable[]} permissions the permissions to test for
|
* @param {PermissionResolvable[]} permissions The permissions to check for
|
||||||
* @param {boolean} [explicit=false] whether to require the member to explicitly have the exact permissions
|
* @param {boolean} [explicit=false] Whether to require the member to explicitly have the exact permissions
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
hasPermissions(permissions, explicit = false) {
|
hasPermissions(permissions, explicit = false) {
|
||||||
|
|||||||
@@ -101,8 +101,8 @@ class Role {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not the role includes the given permission
|
* Checks if the role has a permission.
|
||||||
* @param {PermissionResolvable} permission The name of the permission to test
|
* @param {PermissionResolvable} permission The permission to check for
|
||||||
* @param {boolean} [explicit=false] Whether to require the role to explicitly have the exact permission
|
* @param {boolean} [explicit=false] Whether to require the role to explicitly have the exact permission
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
* @example
|
* @example
|
||||||
|
|||||||
Reference in New Issue
Block a user