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.
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.