Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. --current Discord Permissions
  2. if (
  3.     channelPermissions.developer or
  4.     channelPermissions.ImposterTeam or
  5.     channelPermissions.Level2
  6. )
  7. then
  8.     -- allow in game
  9.     return true
  10. end
  11.  
  12. -- How it SHOULD work
  13.  
  14. if ( channelPermissions.ImposterTeam ) then
  15.     if (channelPermissions.Developer) then
  16.         if (channelPermissions.Level2) then
  17.             -- allow in game
  18.             return true
  19.         end
  20.     end
  21. end
  22.  
  23. -- or
  24. if ( channelPermissions.ImposterTeam or channelPermissions.fpsGameTeam ) then
  25.     if (channelPermissions.Developer) then
  26.         if (channelPermissions.Level2) then
  27.             -- allow in game
  28.             return true
  29.         end
  30.     end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement