Adding custom group recognization

So I know admin is a default group (ACCESS_ADMIN), but say I wanted to make the command slay for my custom group LEADMODERATOR. How would I get it to recognize that LEADMOTERATOR is a group? e.g. slay:defaultaccess(ULib.ACCESS_ADMIN)

Do you mean like this?



if ply:IsUserGroup("LEADMODERATOR") then
// Code here.
end