pyraxo / sylphy

👑 the better discord bot framework
GNU Affero General Public License v3.0
95 stars 24 forks source link

Permissions check don't work. #17

Closed p4rkrs closed 7 years ago

p4rkrs commented 7 years ago

Hello,

I tried to check if a member have the permission for execute a kick command. So the permission is kickMembers, I use permissions: ['kickMembers'] but everyone can execute the command. That's doesn't working for the botPerms: ['kickMembers'] too. That's my full code : https://gist.github.com/itskiru/6e8e5c09cc36fd025fdae01a9deda6cd

Thanks.

*Edit: Change the link of the full code

pyraxo commented 7 years ago

permissions and botPerms should be written under in the options of the Command constructor