Dynamic help command displaying commands regardless of perms
Closed this issue · 1 comments
Zenathor commented
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
Resolved.
Changed let permissions = command.permission
to let { permissions } = command;
, and it works just fine now. Closing this.