The title speaks for itself, please help, pretty please.
The member
class contains hasPermission
function. So the code to check if message author has permission would look like this:
if message.member:hasPermission(banMembers) then
-- do action
end
Useful links: