`TypeError: member.hasPermission() is not a function` when checking permissions in discord.js
问题 I am trying to make a has-permission command for my Discord bot, which takes two arguments: the user to check, and the permission to check for. You can see the code in the bot's GitHub repository (the config.json file is hidden due to it containing private information about my bot application). Discord Screenshot: The bot just replies there was an error trying to execute that command! . Console Screenshot: The console just says TypeError: member.hasPermission is not a function . Is there any