Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Permissions check don't work. #17

Closed
p4rkrs opened this issue Jul 25, 2017 · 1 comment
Closed

Permissions check don't work. #17

p4rkrs opened this issue Jul 25, 2017 · 1 comment

Comments

@p4rkrs
Copy link
Contributor

p4rkrs commented Jul 25, 2017

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
Copy link
Owner

pyraxo commented Jul 29, 2017

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

@pyraxo pyraxo closed this as completed Jul 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants