AlexzanderFlores / Worn-Off-Keys-Discord-Js

469 stars 514 forks source link

Update help.js #11

Open rinarchy opened 3 years ago

rinarchy commented 3 years ago

let permissions = command.permission

Will cause this to always display all commands, regardless of the permissions of the user, irrespective of their actual permissions as both the add command, add currency command + the default module.exports use the key value pair labelled "permissions" not permission. Changing to be

let commandPermissions = command.permissions

resolves this by pulling the correct key/value pair and as such commands will not be shown if the user doesn't have the permissions.