Androz2091 / scratch-for-discord

🐱Create your own Discord Bot easily using Scratch-styled blocks! Made with Vue.js
https://scratch-for-discord.netlify.app
Other
353 stars 130 forks source link

.hasPermission doesn't work anymore, use permissions.has #519

Open Megalaoofania opened 1 year ago

Megalaoofania commented 1 year ago

In discord.js v13 the permission coding has been changed.

discord.js v12 uses: (s4dmessage.member).hasPermission('ADMINISTRATOR') discord.js v13 uses: (s4dmessage.member).permissions.has('ADMINISTRATOR')