mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Remove all string object references (#586)
This commit is contained in:
committed by
Amish Shah
parent
ec0a5cdfbc
commit
d97ce2e181
@@ -39,7 +39,7 @@ class EvaluatedPermissions {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
hasPermission(permission, explicit = false) {
|
||||
if (permission instanceof String || typeof permission === 'string') {
|
||||
if (typeof permission === 'string') {
|
||||
permission = Constants.PermissionFlags[permission];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user