diff --git a/src/util/Util.js b/src/util/Util.js index 7c73971..6239dfc 100644 --- a/src/util/Util.js +++ b/src/util/Util.js @@ -20,7 +20,7 @@ class Util { static checkPermissions (perms, perm, level = 1) { if (!perms || typeof perms !== 'object') throw new Error('Missing perms object'); - if (!perm || typeof perms !== 'string') throw new Error('Missing perm string'); + if (!perm || typeof perm !== 'string') throw new Error('Missing perm string'); // Allow for checking of nested permissions, e.g. administrator:createUser const resolveables = perm.split(':');