When I try to use the kick command, it says TypeError: message.author.hasPermission is not a function
. I want it to not work if you don't have the permission KICK_MEMBERS
.
This is my code that is returning the error:
if (!message.author.hasPermission("KICK_MEMBERS")) return;