Search code examples
discordluvit

How to check for user perms (DISCORDIA)


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


Solution

  • 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: