How to check for user perms (DISCORDIA)

416 Views Asked by At

The title speaks for itself, please help, pretty please.

1

There are 1 best solutions below

2
mozkomor05 On BEST ANSWER

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: