AlexzanderFlores / Worn-Off-Keys-Discord-Js

469 stars 514 forks source link

Dynamic help command displaying commands regardless of perms #14

Closed Zenathor closed 3 years ago

Zenathor commented 3 years ago

Hi,

I have been watching the series on YouTube and have been coding along at first, before making my own adjustments afterwards. Great series, by the way. Lots to learn from it.

Anyway, even after trying to use the forked version of the entire repository, I am still experiencing the same issue. That is when I run the help command (dynamic help command) it prints commands regardless of if the user has permissions or not. My code matches exactly, and even on the forked one the issue was the same.

Am I the only one experiencing this for whatever reason?

Zenathor commented 3 years ago

Resolved.

Changed let permissions = command.permission to let { permissions } = command;, and it works just fine now. Closing this.