Exemplo n.º 1
0
        public static bool HasPermission(TwitchUser inputUser, int permissionLevel)
        {
            // explicitly check a permission level of a user and an action
            int userPermissionLevel = RequestBot.getPermissionLevel(inputUser);

            if ((userPermissionLevel & permissionLevel) >= 1)
            {
                return(true);
            }
            return(false);
        }